From: Zack Cerza Date: Fri, 3 Oct 2025 22:06:57 +0000 (-0600) Subject: Dockerfile.build: Make sccache repo configurable X-Git-Tag: testing/wip-vshankar-testing-20251027.163924-reef-debug~2^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0fc00bdb6b88f09092d087dc8d86b07d6547ab31;p=ceph-ci.git Dockerfile.build: Make sccache repo configurable CEPH-BUILD-BRANCH: sccache-stats DISTROS: centos9 noble ARCHS: x86_64 FLAVORS: default CI-CONTAINER: false Signed-off-by: Zack Cerza (cherry picked from commit 47565e9033d975f95cda61cea465141c4a0656d2) --- diff --git a/Dockerfile.build b/Dockerfile.build index 015b3be935b..2f88042aef4 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -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