Skip to content

Commit

Permalink
Merge pull request #4957 from camptocamp/config
Browse files Browse the repository at this point in the history
By able to eayier build the project throw a proxy
  • Loading branch information
sbrunner committed May 22, 2019
2 parents 6efe33c + bfc51d8 commit 6ff0458
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ docker-build:
.PHONY: build
build: \
docker-build-build \
docker-build-config \
docker-build-qgisserver \
docker-build-testdb \
prepare-tests
Expand Down Expand Up @@ -187,6 +188,10 @@ docker-build-build: $(shell docker-required --path . --replace-pattern='^test(.*
$(APPS_FILES_ALT)
docker build --build-arg=VERSION=$(VERSION) --tag=$(DOCKER_BASE)-build:$(MAJOR_VERSION) .

.PHONY: docker-build-config
docker-build-config:
docker build --tag=$(DOCKER_BASE)-config:$(MAJOR_VERSION) docker/config

docker/qgisserver/commons: commons
rm --recursive --force $@
cp --recursive $< $@
Expand Down
8 changes: 8 additions & 0 deletions docker/config/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM debian:stretch
LABEL maintainer Camptocamp "info@camptocamp.com"

RUN \
apt-get update && \
apt-get install --assume-yes --no-install-recommends gettext-base python3 && \
apt-get clean && \
rm --recursive --force /var/lib/apt/lists/*
10 changes: 2 additions & 8 deletions geoportal/c2cgeoportal_geoportal/scaffolds/create/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
FROM debian:stretch
LABEL maintainer Camptocamp "info@camptocamp.com"

RUN \
apt-get update && \
apt-get install --assume-yes --no-install-recommends gettext-base python3 && \
apt-get clean && \
rm --recursive --force /var/lib/apt/lists/*
ARG VERSION
FROM camptocamp/geomapfish-build:${VERSION}

COPY . /tmp/config/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ docker-build-config: $(shell docker-required --path .) \
$(PRINT_CONFIG_FILE) \
$(MAPCACHE_FILE) \
qgisserver/geomapfish.yaml
docker build --tag=$(DOCKER_BASE)-config:$(DOCKER_TAG) .
docker build --tag=$(DOCKER_BASE)-config:$(DOCKER_TAG) --build-arg=VERSION=$(GEOMAPFISH_VERSION) .

.PHONY: docker-build-geoportal
docker-build-geoportal: $(shell docker-required --path geoportal) \
Expand Down
2 changes: 1 addition & 1 deletion travis/publish
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ then
fi

# Publish the GeoMapFish images
for IMAGE in geomapfish-build-dev geomapfish-build
for IMAGE in geomapfish-build-dev geomapfish-build geomapfish-config
do
docker tag camptocamp/${IMAGE}:${MAJOR_VERSION} camptocamp/${IMAGE}:${VERSION}
docker push camptocamp/${IMAGE}:${VERSION}
Expand Down

0 comments on commit 6ff0458

Please sign in to comment.