Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5d5ea55

Browse files
3nidsm-kuhn
authored andcommittedSep 16, 2017
use second Dockerfile to push 2nd image
1 parent a479e76 commit 5d5ea55

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed
 

‎.ci/travis/linux/before_script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ set -e
1818
pushd .docker
1919

2020
docker --version
21-
docker-compose --version
22-
docker-compose -f $DOCKER_COMPOSE config
2321
#docker pull ubuntu:16.04
2422
docker pull "qgis/qgis3-build-deps:${DOCKER_TAG}" || true
25-
docker build --cache-from "qgis/qgis3-build-deps:${DOCKER_TAG}" -t "qgis/qgis3-build-deps:${DOCKER_TAG}" .
23+
docker build --file deps-Dockerfile \
24+
--cache-from "qgis/qgis3-build-deps:${DOCKER_TAG}"\
25+
--tag "qgis/qgis3-build-deps:${DOCKER_TAG}" .
2626
# image should be pushed even if QGIS build fails
2727
# but push is achieved only on branches (not for PRs)
2828
if [[ $DOCKER_PUSH =~ true ]]; then

‎.ci/travis/linux/install.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@
1212
# (at your option) any later version. #
1313
# #
1414
###########################################################################
15-
16-
shopt -s expand_aliases
17-
alias python=python3

‎.ci/travis/linux/script.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ docker-compose -f $DOCKER_COMPOSE run --rm qgis-deps
2121

2222
mkdir -p $CCACHE_DIR
2323

24-
docker-compose -f $DOCKER_COMPOSE run --rm qgis-deps
24+
docker-compose --version
25+
docker-compose -f $DOCKER_COMPOSE config
26+
docker-compose -f $DOCKER_COMPOSE run --rm qgis-build-and-test
2527

2628
popd

‎.docker/Dockerfile renamed to ‎.docker/deps-Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,3 @@ ENV QT_SELECT=5
104104
# RUN ${CXX} --version
105105

106106
RUN apt-get install -y git
107-
108-
# RUN locale-gen en_US.UTF-8
109-
# ENV LANG=en_US.UTF-8
110-
# ENV LANGUAGE=en_US:en
111-
# ENV LC_ALL=en_US.UTF-8
112-
113-
CMD /root/QGIS/.ci/travis/linux/docker-build-test.sh

‎.docker/docker-compose.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ services:
55
environment:
66
- ALLOW_IP_RANGE="172.18.0.0/16"
77

8-
qgis-deps:
8+
qgis-build-and-test:
9+
build:
10+
context: .
11+
dockerfile: build-Dockerfile
912
tty: true
10-
image: qgis/qgis3-build-deps:${DOCKER_TAG}
13+
image: qgis/qgis3-run:${DOCKER_TAG}
1114
volumes:
1215
- ${TRAVIS_BUILD_DIR}:/root/QGIS
1316
- $HOME/.ccache:/root/.ccache # if changed, also change env var
1417
links:
1518
- postgres
1619
environment:
20+
- DOCKER_TAG=${DOCKER_TAG}
1721
- CCACHE_DIR=/root/.ccache
1822
- CTEST_BUILD_DIR=/root/QGIS
1923
- TRAVIS_BRANCH=${TRAVIS_BRANCH}

0 commit comments

Comments
 (0)
Please sign in to comment.