Skip to content

Commit a9543c2

Browse files
authored
Merge pull request ceph#65803 from zmc/sccache-flex
Dockerfile.build: Make sccache repo configurable
2 parents f23d2ff + 47565e9 commit a9543c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile.build

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ ARG DISTRO
2222
ARG CEPH_CTR_SRC=/usr/local/src/ceph
2323
ARG CLEAN_DNF=yes
2424
ARG CEPH_BASE_BRANCH=main
25-
ARG SCCACHE_VERSION=0.8.2
25+
ARG SCCACHE_VERSION=v0.8.2
26+
ARG SCCACHE_REPO=https://github.com/mozilla/sccache
2627
ARG WITH_CRIMSON=true
2728
COPY --from=bootstrap ${CEPH_CTR_SRC} ${CEPH_CTR_SRC}
2829
# Note that we do not use ENV for the following. This is because we do not
@@ -34,5 +35,6 @@ RUN DISTRO=$DISTRO \
3435
WITH_CRIMSON=${WITH_CRIMSON} \
3536
bash -x ${CEPH_CTR_SRC}/buildcontainer-setup.sh
3637
RUN \
37-
SCCACHE_URL="https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/sccache-v${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl.tar.gz"; \
38-
curl -L $SCCACHE_URL | tar --no-anchored --strip-components=1 -C /usr/local/bin/ -xzf - sccache
38+
SCCACHE_URL="${SCCACHE_REPO}/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl.tar.gz"; \
39+
echo "${SCCACHE_URL}"; \
40+
curl -sS -L $SCCACHE_URL | tar --no-anchored --strip-components=1 -C /usr/local/bin/ -xzf - sccache

0 commit comments

Comments
 (0)