File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed
Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ RUN pipx install --pip-args='--no-cache' conan==${CONAN_VERSION} && \
6969# ====================== GCC IMAGE ======================
7070FROM 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
7374ARG 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 =====================
157158FROM 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
160162ARG 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
166167ARG CLANG_VERSION
167168RUN <<EOF
168169apt-get update
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ RUN pip install --no-cache conan==${CONAN_VERSION} gcovr==${GCOVR_VERSION}
4242# ====================== GCC IMAGE ======================
4343FROM 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
122125# ===================== CLANG IMAGE =====================
123126FROM 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.
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ ENV PIPX_HOME=/opt/pipx \
4848
4949FROM 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.
5256ARG CLANG_FORMAT_VERSION
5357ARG PRE_COMMIT_VERSION
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ RUN pipx install --pip-args='--no-cache' conan==${CONAN_VERSION} && \
5858# ====================== GCC IMAGE ======================
5959FROM 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
6263ARG DEBIAN_FRONTEND=noninteractive
6364
6465# Install GCC and create the necessary symlinks. We only support packaging with
140141# ===================== CLANG IMAGE =====================
141142FROM 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
144146ARG DEBIAN_FRONTEND=noninteractive
145147
146148# Install Clang. Some build dependencies require GCC to be also available.
You can’t perform that action at this time.
0 commit comments