File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,13 @@ set -e
19
19
mkdir -p " $CCACHE_DIR "
20
20
21
21
if [[ ${DOCKER_BUILD_QGIS_IMAGE} =~ true ]]; then
22
+ # copy ccache dir within QGIS source so it can be accessed from docker
23
+ cp -r ${CCACHE_DIR} ${TRAVIS_BUILD_DIR} /.ccache
22
24
# building docker images
23
25
DIR=$( git rev-parse --show-toplevel) /.docker
24
26
pushd " ${DIR} "
25
27
echo " ${bold} Building QGIS Docker image '${DOCKER_TAG} '...${endbold} "
26
- docker build --build-arg CACHE_DIR=/root/.ccache \
27
- --build-arg DOCKER_TAG=" ${DOCKER_TAG} " \
28
+ docker build --build-arg DOCKER_TAG=" ${DOCKER_TAG} " \
28
29
--cache-from " qgis/qgis:${DOCKER_TAG} " \
29
30
-t " qgis/qgis:${DOCKER_TAG} " \
30
31
-f qgis.dockerfile ..
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ services:
16
16
image : qgis/qgis3-build-deps:${DOCKER_TAG}
17
17
volumes :
18
18
- ${TRAVIS_BUILD_DIR}:/root/QGIS
19
- - $HOME/.ccache :/root/.ccache # if changed, also change env var
19
+ - ${CCACHE_DIR} :/root/.ccache # if changed, also change env var
20
20
links :
21
21
- postgres
22
22
- mssql
Original file line number Diff line number Diff line change 3
3
# see https://docs.docker.com/docker-cloud/builds/advanced/
4
4
# using ARG in FROM requires min v17.05.0-ce
5
5
ARG DOCKER_TAG=latest
6
- ARG CACHE_DIR
7
6
8
7
FROM qgis/qgis3-build-deps:${DOCKER_TAG}
9
8
MAINTAINER Denis Rouzaud <denis@opengis.ch>
10
9
10
+ LABEL Description="Docker container with QGIS" Vendor="QGIS.org" Version="1.1"
11
11
ENV CC=/usr/lib/ccache/clang
12
12
ENV CXX=/usr/lib/ccache/clang++
13
13
ENV QT_SELECT=5
14
14
ENV LANG=C.UTF-8
15
15
16
16
COPY . /usr/src/QGIS
17
17
18
- COPY ${CACHE_DIR} /root/.ccache
19
- ENV CCACHE_DIR=/root/.ccache
18
+ ENV CCACHE_DIR=/usr/src/QGIS/.ccache
20
19
RUN ccache -M 1G
21
20
RUN ccache -s
22
21
Original file line number Diff line number Diff line change 7
7
apt : true
8
8
pip : true
9
9
directories :
10
- - $HOME/.ccache
10
+ - ${ HOME} /.ccache
11
11
timeout : 1000
12
12
13
13
env :
You can’t perform that action at this time.
0 commit comments