Skip to content

Commit

Permalink
Revert "use second Dockerfile to push 2nd image"
Browse files Browse the repository at this point in the history
This reverts commit 050682a.
  • Loading branch information
3nids committed Aug 15, 2017
1 parent c411284 commit 7b6d9e8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .ci/travis/linux/before_script.sh
Expand Up @@ -18,11 +18,11 @@ set -e
pushd .docker

docker --version
docker-compose --version
docker-compose -f $DOCKER_COMPOSE config
#docker pull ubuntu:16.04
docker pull "qgis/qgis3-build-deps:${DOCKER_TAG}" || true
docker build --file deps-Dockerfile \
--cache-from "qgis/qgis3-build-deps:${DOCKER_TAG}"\
--tag "qgis/qgis3-build-deps:${DOCKER_TAG}" .
docker build --cache-from "qgis/qgis3-build-deps:${DOCKER_TAG}" -t "qgis/qgis3-build-deps:${DOCKER_TAG}" .
# image should be pushed even if QGIS build fails
# but push is achieved only on branches (not for PRs)
if [[ $DOCKER_PUSH =~ true ]]; then
Expand Down
3 changes: 3 additions & 0 deletions .ci/travis/linux/install.sh
Expand Up @@ -12,3 +12,6 @@
# (at your option) any later version. #
# #
###########################################################################

shopt -s expand_aliases
alias python=python3
4 changes: 1 addition & 3 deletions .ci/travis/linux/script.sh
Expand Up @@ -21,8 +21,6 @@ pushd $DIR

mkdir -p $CCACHE_DIR

docker-compose --version
docker-compose -f $DOCKER_COMPOSE config
docker-compose -f $DOCKER_COMPOSE run --rm qgis-build-and-test
docker-compose -f $DOCKER_COMPOSE run --rm qgis-deps

popd
7 changes: 7 additions & 0 deletions .docker/deps-Dockerfile → .docker/Dockerfile
Expand Up @@ -104,3 +104,10 @@ ENV QT_SELECT=5
# RUN ${CXX} --version

RUN apt-get install -y git

# RUN locale-gen en_US.UTF-8
# ENV LANG=en_US.UTF-8
# ENV LANGUAGE=en_US:en
# ENV LC_ALL=en_US.UTF-8

CMD /root/QGIS/.ci/travis/linux/docker-build-test.sh
8 changes: 2 additions & 6 deletions .docker/docker-compose.travis.yml
Expand Up @@ -5,19 +5,15 @@ services:
environment:
- ALLOW_IP_RANGE="172.18.0.0/16"

qgis-build-and-test:
build:
context: .
dockerfile: build-Dockerfile
qgis-deps:
tty: true
image: qgis/qgis3-run:${DOCKER_TAG}
image: qgis/qgis3-build-deps:${DOCKER_TAG}
volumes:
- ${TRAVIS_BUILD_DIR}:/root/QGIS
- $HOME/.ccache:/root/.ccache # if changed, also change env var
links:
- postgres
environment:
- DOCKER_TAG=${DOCKER_TAG}
- CCACHE_DIR=/root/.ccache
- CTEST_BUILD_DIR=/root/QGIS
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
Expand Down

0 comments on commit 7b6d9e8

Please sign in to comment.