Skip to content

Commit 716f436

Browse files
committed
Repeat DEBIAN_VERSION arg as it is not inherited
1 parent 9350a8c commit 716f436

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docker/debian/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ FROM ${BASE_IMAGE} AS gcc-src
1515
# ====================== BASE IMAGE ======================
1616
FROM debian:${DEBIAN_VERSION} AS base
1717

18+
# This is not inherited from the base image.
19+
ARG DEBIAN_VERSION
20+
1821
# Use Bash as the default shell for RUN commands, using the options
1922
# `set -o errexit -o pipefail`, and as the entrypoint.
2023
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]

docker/debian/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ docker buildx build . \
5151
--target gcc \
5252
--build-arg BUILDKIT_DOCKERFILE_CHECK=skip=InvalidDefaultArgInFrom \
5353
--build-arg BUILDKIT_INLINE_CACHE=1 \
54-
--build-arg CONAN_VERSION=${CONAN_VERSION} \
5554
--build-arg DEBIAN_VERSION=${DEBIAN_VERSION} \
5655
--build-arg GCC_VERSION=${GCC_VERSION} \
57-
--build-arg GCOVR_VERSION=${GCOVR_VERSION} \
56+
--build-arg CCACHE_VERSION=${CCACHE_VERSION} \
5857
--build-arg CMAKE_VERSION=${CMAKE_VERSION} \
58+
--build-arg CONAN_VERSION=${CONAN_VERSION} \
59+
--build-arg GCOVR_VERSION=${GCOVR_VERSION} \
5960
--build-arg MOLD_VERSION=${MOLD_VERSION} \
6061
--build-arg RUST_VERSION=${RUST_VERSION} \
6162
--tag ${CONTAINER_IMAGE}

docker/rhel/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ EOF
2323
RUN <<EOF
2424
pkgs=()
2525
pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
26-
if [ "${RHEL_VERSION}" -eq "8" ]; then
26+
if [[ "${RHEL_VERSION}" == "8" ]]; then
2727
pkgs+=(binutils) # Required build tool.
2828
else
2929
pkgs+=(binutils-gold) # Required build tool.
@@ -96,7 +96,7 @@ RUN pip install --no-cache \
9696
ARG CCACHE_VERSION
9797

9898
RUN <<EOF
99-
if [ "${RHEL_VERSION}" -eq "8" ]; then
99+
if [[ "${RHEL_VERSION}" == "8" ]]; then
100100
dnf update -y
101101
dnf install -y --allowerasing --setopt=tsflags=nodocs ccache
102102
dnf clean -y all

0 commit comments

Comments
 (0)