From 6786bb226ee47d69d1b664e1cefe2aaccb45589a Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Tue, 17 Jan 2023 18:31:58 +0000 Subject: [PATCH] ccache: use CCACHE_DIR --- containers/jug/xl.Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/containers/jug/xl.Dockerfile b/containers/jug/xl.Dockerfile index 96b191ea5..22350f5c0 100644 --- a/containers/jug/xl.Dockerfile +++ b/containers/jug/xl.Dockerfile @@ -101,11 +101,13 @@ ADD https://api.github.com/repos/eic/ip6 /tmp/ip6.json ADD https://api.github.com/repos/eic/epic /tmp/epic.json COPY setup_detectors.py /tmp COPY detectors.yaml /tmp -RUN --mount=type=cache,target=/root/.ccache/ \ +ENV CCACHE_DIR=/ccache +RUN --mount=type=cache,target=/ccache/ \ cd /tmp \ && [ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG="" \ && /tmp/setup_detectors.py --prefix /opt/detector --config /tmp/detectors.yaml \ $NIGHTLY_FLAG \ + && ccache --show-stats \ && rm /tmp/setup_detectors.py ## Hotfix for misbehaving OSG nodes -- GitLab