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

feat: heredoc in xl.Dockerfile

parent 720c1922
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !758. Comments created here will be created in the context of that merge request.
...@@ -17,8 +17,7 @@ ARG jobs=8 ...@@ -17,8 +17,7 @@ ARG jobs=8
## the date ## the date
ARG JUG_VERSION=1 ARG JUG_VERSION=1
RUN cd /tmp \ RUN echo " - jug_xl: ${JUG_VERSION}" >> /etc/jug_info
&& echo " - jug_xl: ${JUG_VERSION}" >> /etc/jug_info
## also install detector/ip geometries into opt ## also install detector/ip geometries into opt
ARG NIGHTLY='' ARG NIGHTLY=''
...@@ -31,11 +30,11 @@ ADD https://api.github.com/repos/eic/ip6 /tmp/ip6.json ...@@ -31,11 +30,11 @@ 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 --from=detectors detectors.yaml /tmp COPY --from=detectors detectors.yaml /tmp
RUN --mount=type=cache,target=/ccache/,sharing=locked,id=${TARGETPLATFORM} \ RUN --mount=type=cache,target=/ccache/,sharing=locked,id=${TARGETPLATFORM} <<EOF
cd /tmp \ cd /tmp
&& export CCACHE_DIR=/ccache \ export CCACHE_DIR=/ccache
&& [ "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
&& ccache --show-stats \ rm /tmp/setup_detectors.py
&& rm /tmp/setup_detectors.py EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment