Skip to content

Commit

Permalink
Docker: fix arm64 build in non-release mode [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 13, 2024
1 parent b9f419d commit 892f3ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker/ubuntu-full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& apt-get update -y \
&& apt-get install -y --fix-missing --no-install-recommends libgflags-dev${APT_ARCH_SUFFIX}
RUN --mount=type=cache,id=ubuntu-full-libjxl,target=$HOME/.cache \
git clone https://github.com/libjxl/libjxl.git --recursive \
. /buildscripts/bh-set-envvars.sh \
&& git clone https://github.com/libjxl/libjxl.git --recursive \
&& if [ -n "${RSYNC_REMOTE:-}" ]; then \
echo "Downloading cache..."; \
rsync -ra "${RSYNC_REMOTE}/libjxl/${GCC_ARCH}/" "$HOME/.cache/"; \
Expand Down
2 changes: 1 addition & 1 deletion docker/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ EOF
echo "${TARGET_BASE_IMAGE_DIGEST}"
BUILD_ARGS+=("--build-arg" "TARGET_ARCH=${ARCH_PLATFORM_ARCH}")
#BUILD_ARGS+=("--build-arg" "TARGET_BASE_IMAGE=${BASE_IMAGE}@${TARGET_BASE_IMAGE_DIGEST}")
BUILD_ARGS+=("--build-arg" "TARGET_BASE_IMAGE=${TARGET_BASE_IMAGE_DIGEST}")
BUILD_ARGS+=("--build-arg" "TARGET_BASE_IMAGE=arm64v8/${BASE_IMAGE}")
# echo "${BUILD_ARGS[@]}"
fi
elif test "${DOCKER_BUILDX}" != "buildx" -a \( "${IMAGE_NAME}" = "osgeo/gdal:alpine-small-latest" -o "${IMAGE_NAME}" = "osgeo/gdal:alpine-normal-latest" \); then
Expand Down

0 comments on commit 892f3ec

Please sign in to comment.