]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Dockerfile.build: Make sccache repo configurable
authorZack Cerza <zack@cerza.org>
Fri, 3 Oct 2025 22:06:57 +0000 (16:06 -0600)
committerJohn Mulligan <phlogistonjohn@asynchrono.us>
Wed, 22 Oct 2025 01:25:47 +0000 (21:25 -0400)
CEPH-BUILD-BRANCH: sccache-stats
DISTROS: centos9 noble
ARCHS: x86_64
FLAVORS: default
CI-CONTAINER: false
Signed-off-by: Zack Cerza <zack@cerza.org>
(cherry picked from commit 47565e9033d975f95cda61cea465141c4a0656d2)

Dockerfile.build

index 015b3be935b1becf2c1e8d7748cc132905c95c07..2f88042aef41655c276af47052f3ea9bc89da1fe 100644 (file)
@@ -21,7 +21,8 @@ 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
+ARG SCCACHE_VERSION=v0.8.2
+ARG SCCACHE_REPO=https://github.com/mozilla/sccache
 ARG WITH_CRIMSON=true
 ARG FOR_MAKE_CHECK=1
 COPY --from=bootstrap ${CEPH_CTR_SRC} ${CEPH_CTR_SRC}
@@ -35,5 +36,6 @@ RUN DISTRO=$DISTRO \
     FOR_MAKE_CHECK=${FOR_MAKE_CHECK} \
     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
+    SCCACHE_URL="${SCCACHE_REPO}/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl.tar.gz"; \
+    echo "${SCCACHE_URL}"; \
+    curl -sS -L $SCCACHE_URL | tar --no-anchored --strip-components=1 -C /usr/local/bin/ -xzf - sccache