Skip to content

Commit

Permalink
Merge pull request #3874 from camptocamp/qgis-versions
Browse files Browse the repository at this point in the history
Build QGIS version 3.2, master
  • Loading branch information
sbrunner authored Jun 29, 2018
2 parents 131fd9d + 95a2b17 commit 3e14472
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ docker/qgisserver/commons: commons

.PHONY: docker-build-qgisserver
docker-build-qgisserver: $(shell docker-required --path docker/qgisserver) docker/qgisserver/commons
docker build --tag=$(DOCKER_BASE)-qgisserver:$(MAJOR_VERSION) docker/qgisserver

docker build --tag=$(DOCKER_BASE)-qgisserver:gmf$(MAJOR_VERSION)-qgismaster docker/qgisserver
docker build --tag=$(DOCKER_BASE)-qgisserver:gmf$(MAJOR_VERSION)-qgis3.2 \
--file=docker/qgisserver/Dockerfile32 docker/qgisserver

.PHONY: prepare-tests
prepare-tests: \
Expand Down
10 changes: 10 additions & 0 deletions docker/qgisserver/Dockerfile32
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM camptocamp/qgis-server:3.2
LABEL maintainer Camptocamp "[email protected]"

COPY requirements.txt /tmp/
RUN python3 -m pip install --requirement /tmp/requirements.txt

COPY geomapfish_plugin/* /var/www/plugins/geomapfish_qgisserver/
COPY commons /opt/c2cgeoportal_commons

RUN python3 -m pip install --editable /opt/c2cgeoportal_commons
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ${service_defaults('print', 8080)}\
${service_defaults('mapserver', 8080)}\

## qgisserver:
## image: camptocamp/geomapfish-qgisserver:2.3
## image: camptocamp/geomapfish-qgisserver:gmf2.3-qgis3.2
## user: www-data
## volumes_from:
## - config:ro
Expand Down
21 changes: 19 additions & 2 deletions travis/publish-docker
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/bash -ex

docker login --username ${DOCKER_USERNAME} --password ${DOCKER_PASSWORD}

for IMAGE in geomapfish-build-dev geomapfish-commons geomapfish-build geomapfish-qgisserver
for IMAGE in geomapfish-build-dev geomapfish-build
do
if [ "${TRAVIS_TAG}" != "" ]
then
Expand All @@ -16,3 +16,20 @@ do
docker push camptocamp/${IMAGE}:${MAJOR_VERSION}
fi
done

for QGIS_VERSION in 3.2 master
do
if [ "${TRAVIS_TAG}" != "" ]
then
docker tag camptocamp/geomapfish-qgisserver:gmf${MAJOR_VERSION}-qgis${QGIS_VERSION} \
camptocamp/geomapfish-qgisserver:gmf${TRAVIS_TAG}-qgis${QGIS_VERSION}
docker push camptocamp/geomapfish-qgisserver:gmf${TRAVIS_TAG}-qgis${QGIS_VERSION}
elif [ "${TRAVIS_BRANCH}" != "master" ]
then
docker tag camptocamp/geomapfish-qgisserver:gmf${MAJOR_VERSION}-qgis${QGIS_VERSION} \
camptocamp/geomapfish-qgisserver:gmf${TRAVIS_BRANCH/\//_}-qgis${QGIS_VERSION}
docker push camptocamp/geomapfish-qgisserver:gmf${TRAVIS_BRANCH/\//_}-qgis${QGIS_VERSION}
else
docker push camptocamp/geomapfish-qgisserver:gmf${MAJOR_VERSION}-qgis${QGIS_VERSION}
fi
done

0 comments on commit 3e14472

Please sign in to comment.