]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Dockerfile.build: Install sccache
authorZack Cerza <zack@cerza.org>
Mon, 24 Feb 2025 19:30:13 +0000 (12:30 -0700)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 31 Jul 2025 22:00:29 +0000 (18:00 -0400)
Note that it is not used automatically.

Signed-off-by: Zack Cerza <zack@cerza.org>
(cherry picked from commit a5a983c7363ab185cdc48ecd392f8cff6ce087bd)

Dockerfile.build

index 405d201f955e3f8a7b61e30dce0f0f4cc62b7e4c..19e0f78d7d5d1bf0a34369ff9f9aee32506c1676 100644 (file)
@@ -22,6 +22,7 @@ ARG DISTRO
 ARG CEPH_CTR_SRC=/usr/local/src/ceph
 ARG CLEAN_DNF=yes
 ARG CEPH_BASE_BRANCH=main
+ARG SCCACHE_VERSION=0.8.2
 COPY --from=bootstrap ${CEPH_CTR_SRC} ${CEPH_CTR_SRC}
 # Note that we do not use ENV for the following. This is because we do not
 # want them permamently stored in the container's layer.
@@ -30,3 +31,6 @@ RUN DISTRO=$DISTRO \
     CLEAN_DNF=$CLEAN_DNF \
     CEPH_CTR_SRC=${CEPH_CTR_SRC} \
     bash -x ${CEPH_CTR_SRC}/buildcontainer-setup.sh
+RUN \
+    SCCACHE_URL="https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/sccache-v${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl.tar.gz"; \
+    curl -L $SCCACHE_URL | tar --no-anchored --strip-components=1 -C /usr/local/bin/ -xzf - sccache