summaryrefslogtreecommitdiff
path: root/ci/containers/centos-stream-9.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'ci/containers/centos-stream-9.Dockerfile')
-rw-r--r--ci/containers/centos-stream-9.Dockerfile14
1 files changed, 9 insertions, 5 deletions
diff --git a/ci/containers/centos-stream-9.Dockerfile b/ci/containers/centos-stream-9.Dockerfile
index 341b6c9..8492a76 100644
--- a/ci/containers/centos-stream-9.Dockerfile
+++ b/ci/containers/centos-stream-9.Dockerfile
@@ -6,14 +6,14 @@
FROM quay.io/centos/centos:stream9
-RUN dnf update -y && \
+RUN dnf distro-sync -y && \
dnf install 'dnf-command(config-manager)' -y && \
dnf config-manager --set-enabled -y crb && \
- dnf install -y \
- https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
- https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm && \
+ dnf install -y epel-release && \
+ dnf install -y epel-next-release && \
dnf install -y \
ca-certificates \
+ ccache \
check-devel \
gcc \
gettext \
@@ -42,8 +42,12 @@ RUN dnf update -y && \
xz && \
dnf autoremove -y && \
dnf clean all -y && \
- rpm -qa | sort > /packages.txt
+ rpm -qa | sort > /packages.txt && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
ENV LANG "en_US.UTF-8"
ENV MAKE "/usr/bin/make"
ENV NINJA "/usr/bin/ninja"