Skip to content
Snippets Groups Projects

feat: setup reconstruction and detectors with ccache

Merged Wouter Deconinck requested to merge wdconinc-master-patch-42155 into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -101,11 +101,13 @@ ADD https://api.github.com/repos/eic/ip6 /tmp/ip6.json
@@ -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
ADD https://api.github.com/repos/eic/epic /tmp/epic.json
COPY setup_detectors.py /tmp
COPY setup_detectors.py /tmp
COPY detectors.yaml /tmp
COPY detectors.yaml /tmp
RUN --mount=type=cache,target=/root/.ccache/ \
ENV CCACHE_DIR=/ccache
 
RUN --mount=type=cache,target=/ccache/ \
cd /tmp \
cd /tmp \
&& [ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG="" \
&& [ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG="" \
&& /tmp/setup_detectors.py --prefix /opt/detector --config /tmp/detectors.yaml \
&& /tmp/setup_detectors.py --prefix /opt/detector --config /tmp/detectors.yaml \
$NIGHTLY_FLAG \
$NIGHTLY_FLAG \
 
&& ccache --show-stats \
&& rm /tmp/setup_detectors.py
&& rm /tmp/setup_detectors.py
## Hotfix for misbehaving OSG nodes
## Hotfix for misbehaving OSG nodes
Loading