Skip to content

Commit f2d93a9

Browse files
authored
Fix OS version in certain images (#22)
1 parent 3547bb3 commit f2d93a9

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

docker/debian/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ RUN pipx install --pip-args='--no-cache' conan==${CONAN_VERSION} && \
6969
# ====================== GCC IMAGE ======================
7070
FROM base AS gcc
7171

72-
# This is not inherited from base image, ensure no manual interaction needed.
72+
# These are not inherited from base image.
73+
ARG DEBIAN_VERSION
7374
ARG DEBIAN_FRONTEND=noninteractive
7475

7576
# Copy GCC from the source image, make the package manager aware of its
@@ -156,13 +157,13 @@ EOF
156157
# ===================== CLANG IMAGE =====================
157158
FROM base AS clang
158159

159-
# This is not inherited from base image, ensure no manual interaction needed.
160+
# These are not inherited from base image.
161+
ARG DEBIAN_VERSION
160162
ARG DEBIAN_FRONTEND=noninteractive
161163

162164
# Install Clang. Use the LLVM apt repository to access the latest versions. We
163165
# must repeat the DEBIAN_VERSION argument here, as it is not inherited from the
164166
# base or source images. Some build dependencies require GCC to be also available.
165-
ARG DEBIAN_VERSION
166167
ARG CLANG_VERSION
167168
RUN <<EOF
168169
apt-get update

docker/rhel/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ RUN pip install --no-cache conan==${CONAN_VERSION} gcovr==${GCOVR_VERSION}
4242
# ====================== GCC IMAGE ======================
4343
FROM base AS gcc
4444

45+
# This is not inherited from base image.
46+
ARG RHEL_VERSION
47+
4548
# Install GCC. Red Hat installs GCC as a Software Collection (SCL) package,
4649
# where typically you would run `scl enable gcc-toolset-X` to open another Bash
4750
# shell with the GCC toolset enabled. To avoid having to do so, we delete the
@@ -122,6 +125,9 @@ EOF
122125
# ===================== CLANG IMAGE =====================
123126
FROM base AS clang
124127

128+
# This is not inherited from base image.
129+
ARG RHEL_VERSION
130+
125131
# Install Clang. Note that in the RHEL UBIs, we cannot choose the Clang version
126132
# to install and we get what is available. Some build dependencies require GCC
127133
# to be also available.

docker/tools-rippled/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ ENV PIPX_HOME=/opt/pipx \
4848

4949
FROM base AS clang-format
5050

51+
# These are not inherited from base image.
52+
ARG UBUNTU_VERSION
53+
ARG DEBIAN_FRONTEND=noninteractive
54+
5155
# Install clang-format.
5256
ARG CLANG_FORMAT_VERSION
5357
ARG PRE_COMMIT_VERSION

docker/ubuntu/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ RUN pipx install --pip-args='--no-cache' conan==${CONAN_VERSION} && \
5858
# ====================== GCC IMAGE ======================
5959
FROM base AS gcc
6060

61-
# This is not inherited from base image, ensure no manual interaction needed.
61+
# These are not inherited from base image.
62+
ARG UBUNTU_VERSION
6263
ARG DEBIAN_FRONTEND=noninteractive
6364

6465
# Install GCC and create the necessary symlinks. We only support packaging with
@@ -140,7 +141,8 @@ EOF
140141
# ===================== CLANG IMAGE =====================
141142
FROM base AS clang
142143

143-
# This is not inherited from base image, ensure no manual interaction needed.
144+
# These are not inherited from base image.
145+
ARG UBUNTU_VERSION
144146
ARG DEBIAN_FRONTEND=noninteractive
145147

146148
# Install Clang. Some build dependencies require GCC to be also available.

0 commit comments

Comments
 (0)