mirror of
https://github.com/ceph/ceph
synced 2025-04-18 21:36:09 +00:00
Dockerfile.build: Install sccache
Note that it is not used automatically. Signed-off-by: Zack Cerza <zack@cerza.org>
This commit is contained in:
parent
800f5c2924
commit
a5a983c736
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user