Skip to content

Commit

Permalink
docker/ubuntu: install patchelf early
Browse files Browse the repository at this point in the history
Install patchelf along with the other
build tools for PROJ. This avoids PROJ
changes invalidating the patchelf
installation.
  • Loading branch information
pjonsson committed Oct 12, 2024
1 parent c93387d commit 1e620f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions docker/ubuntu-full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
git make ninja-build cmake wget unzip libtool automake \
zlib1g-dev${APT_ARCH_SUFFIX} libsqlite3-dev${APT_ARCH_SUFFIX} pkg-config sqlite3 libcurl4-openssl-dev${APT_ARCH_SUFFIX} \
libtiff-dev${APT_ARCH_SUFFIX} \
patchelf \
rsync

ARG JAVA_VERSION=17
Expand Down Expand Up @@ -331,11 +332,6 @@ RUN --mount=type=cache,id=ubuntu-full-proj,target=$HOME/.cache \
&& rm -rf /build_tmp_proj

# Build PROJ
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y patchelf

ARG PROJ_VERSION=master
RUN --mount=type=cache,id=ubuntu-full-proj,target=$HOME/.cache \
. /buildscripts/bh-set-envvars.sh \
Expand Down
6 changes: 1 addition & 5 deletions docker/ubuntu-small/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
git make ninja-build cmake wget unzip libtool automake \
zlib1g-dev${APT_ARCH_SUFFIX} libsqlite3-dev${APT_ARCH_SUFFIX} pkg-config sqlite3 libcurl4-openssl-dev${APT_ARCH_SUFFIX} \
libtiff-dev${APT_ARCH_SUFFIX} \
patchelf \
rsync

# Setup build env for GDAL
Expand Down Expand Up @@ -105,11 +106,6 @@ ARG WITH_CCACHE

# Build PROJ
ARG PROJ_VERSION=master
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y patchelf

RUN --mount=type=cache,id=ubuntu-small-proj,target=$HOME/.cache \
. /buildscripts/bh-set-envvars.sh \
&& mkdir proj \
Expand Down

0 comments on commit 1e620f5

Please sign in to comment.