Skip to content

Commit a5a983c

Browse files
committed
Dockerfile.build: Install sccache
Note that it is not used automatically. Signed-off-by: Zack Cerza <[email protected]>
1 parent 800f5c2 commit a5a983c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ 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
2526
COPY --from=bootstrap ${CEPH_CTR_SRC} ${CEPH_CTR_SRC}
2627
# Note that we do not use ENV for the following. This is because we do not
2728
# want them permamently stored in the container's layer.
@@ -30,3 +31,6 @@ RUN DISTRO=$DISTRO \
3031
CLEAN_DNF=$CLEAN_DNF \
3132
CEPH_CTR_SRC=${CEPH_CTR_SRC} \
3233
bash -x ${CEPH_CTR_SRC}/buildcontainer-setup.sh
34+
RUN \
35+
SCCACHE_URL="https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/sccache-v${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl.tar.gz"; \
36+
curl -L $SCCACHE_URL | tar --no-anchored --strip-components=1 -C /usr/local/bin/ -xzf - sccache

0 commit comments

Comments
 (0)