Skip to content

Commit a9c8677

Browse files
committed
Add EPEL repo first
1 parent f805f9e commit a9c8677

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docker/rhel/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ ENTRYPOINT ["/bin/bash"]
1010
# This is not inherited from the base image.
1111
ARG RHEL_VERSION
1212

13+
# Install the Fedora Extra Packages for Enterprise Linux (EPEL) repository,
14+
# which provides additional packages for RHEL and CentOS Stream, some of which
15+
# we want to install.
16+
RUN <<EOF
17+
dnf install -y --setopt=tsflags=nodocs https://dl.fedoraproject.org/pub/epel/epel-release-latest-${RHEL_VERSION}.noarch.rpm
18+
dnf upgrade -y
19+
EOF
20+
1321
# Install tools that are shared by all stages.
1422
RUN <<EOF
1523
pkgs=()
@@ -19,6 +27,7 @@ if [ "${RHEL_VERSION}" -eq "8" ]; then
1927
else
2028
pkgs+=(binutils-gold) # Required build tool.
2129
fi
30+
pkgs+=(ccache) # Optional build tool for caching build artifacts.
2231
pkgs+=(file) # Required packaging tool.
2332
pkgs+=(git) # Required build tool.
2433
pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.

0 commit comments

Comments
 (0)