Skip to content

Commit

Permalink
Add Linux sccache binary to base containers
Browse files Browse the repository at this point in the history
Installs prebuilt portable musl sccache Linux binary into
the container.
Note: This CL intentionally does not enable the usage yet,
just makes the tool available. Follow-up Cls will add the
necessary configuration variables.

b/201712565

Change-Id: Ifdd137064618555e5f6477d3cba3beaebb9d7759
  • Loading branch information
kaidokert committed Jan 4, 2022
1 parent 0711324 commit 3437ca5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/linux/base/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,15 @@ RUN cd /tmp \
&& echo ${CLANG_VER} >> ${TC_HOME}/cr_build_revision \
&& rm clang-${CLANG_VER}.tgz

# === Install portable sccache binary
ARG SCCACHE=sccache-dist-v0.2.15-x86_64-unknown-linux-musl.tar.gz
RUN cd /tmp \
&& curl -L -O https://github.com/mozilla/sccache/releases/download/v0.2.15/${SCCACHE} \
&& tar xvzf ${SCCACHE} -C /usr/local/bin --strip-components=1 \
&& mv /usr/local/bin/sccache-dist /usr/local/bin/sccache \
&& chmod +x /usr/local/bin/sccache \
&& rm -rf ${SCCACHE} \
&& sccache --version

WORKDIR /code
CMD ["/usr/bin/python","--version"]

0 comments on commit 3437ca5

Please sign in to comment.