Skip to content
Snippets Groups Projects
Commit 4873d54e authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: do not expose CCACHE_DIR

parent 6c291e82
No related branches found
No related tags found
1 merge request!492fix: do not expose CCACHE_DIR
...@@ -21,14 +21,13 @@ ARG JUG_VERSION=1 ...@@ -21,14 +21,13 @@ ARG JUG_VERSION=1
RUN cd /tmp \ RUN cd /tmp \
&& echo " - jug_xl: ${JUG_VERSION}" >> /etc/jug_info && echo " - jug_xl: ${JUG_VERSION}" >> /etc/jug_info
ENV CCACHE_DIR=/ccache/$TARGETPLATFORM
ADD ${EICWEB}/369/repository/tree?ref=${JUGGLER_VERSION} /tmp/369.json ADD ${EICWEB}/369/repository/tree?ref=${JUGGLER_VERSION} /tmp/369.json
RUN --mount=type=cache,target=/ccache/ \ RUN --mount=type=cache,target=/ccache/ \
cd /tmp \ cd /tmp \
&& echo "INSTALLING JUGGLER" \ && echo "INSTALLING JUGGLER" \
&& git clone -b ${JUGGLER_VERSION} --depth 1 \ && git clone -b ${JUGGLER_VERSION} --depth 1 \
https://eicweb.phy.anl.gov/EIC/juggler.git \ https://eicweb.phy.anl.gov/EIC/juggler.git \
&& export CCACHE_DIR=/ccache/$TARGETPLATFORM \
&& cmake -B build -S juggler \ && cmake -B build -S juggler \
-DCMAKE_CXX_FLAGS="-Wno-psabi" \ -DCMAKE_CXX_FLAGS="-Wno-psabi" \
-DCMAKE_CXX_STANDARD=17 \ -DCMAKE_CXX_STANDARD=17 \
...@@ -48,6 +47,7 @@ RUN --mount=type=cache,target=/ccache/ ...@@ -48,6 +47,7 @@ RUN --mount=type=cache,target=/ccache/
&& echo "INSTALLING EICRECON" \ && echo "INSTALLING EICRECON" \
&& git clone -b ${EICRECON_VERSION} --depth 1 \ && git clone -b ${EICRECON_VERSION} --depth 1 \
https://github.com/eic/eicrecon.git \ https://github.com/eic/eicrecon.git \
&& export CCACHE_DIR=/ccache/$TARGETPLATFORM \
&& cmake -B build -S eicrecon \ && cmake -B build -S eicrecon \
-DCMAKE_CXX_FLAGS="-Wno-psabi" \ -DCMAKE_CXX_FLAGS="-Wno-psabi" \
-DCMAKE_CXX_STANDARD=17 \ -DCMAKE_CXX_STANDARD=17 \
...@@ -132,6 +132,7 @@ COPY setup_detectors.py /tmp ...@@ -132,6 +132,7 @@ COPY setup_detectors.py /tmp
COPY detectors.yaml /tmp COPY detectors.yaml /tmp
RUN --mount=type=cache,target=/ccache/ \ RUN --mount=type=cache,target=/ccache/ \
cd /tmp \ cd /tmp \
&& export CCACHE_DIR=/ccache/$TARGETPLATFORM \
&& [ "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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment