Skip to content

Commit

Permalink
docker/ubuntu-full: cache both PROJ builds
Browse files Browse the repository at this point in the history
I did not realize that PROJ is built twice
in ubuntu-full, so add the cache mount
to the first build as well.
  • Loading branch information
pjonsson committed Oct 10, 2024
1 parent 4f63bf3 commit b4cc8b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/ubuntu-full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ COPY ./bh-proj.sh /buildscripts/bh-proj.sh
# We want 2 separate steps for incremental builds where grids are refreshed
# only when the content of cdn.proj.org has changed, independently if PROJ master
# itself has changed.
RUN . /buildscripts/bh-set-envvars.sh \
RUN --mount=type=cache,id=ubuntu-full-proj,target=$HOME/.cache \
. /buildscripts/bh-set-envvars.sh \
&& DESTDIR=/build_tmp_proj /buildscripts/bh-proj.sh \
&& LD_LIBRARY_PATH=/build_tmp_proj/usr/local/lib /build_tmp_proj/usr/local/bin/projsync --target-dir /tmp/proj_grids --all \
&& rm -rf /build_tmp_proj
Expand Down

0 comments on commit b4cc8b0

Please sign in to comment.