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

feat: install juggler and eicrecon through environment

parent 2a34c59f
No related branches found
No related tags found
No related merge requests found
...@@ -22,47 +22,17 @@ ARG JUG_VERSION=1 ...@@ -22,47 +22,17 @@ 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
ADD ${EICWEB}/369/repository/tree?ref=${JUGGLER_VERSION} /tmp/369.json ## Install juggler to the environment
RUN --mount=type=cache,target=/ccache/,sharing=locked,id=${TARGETPLATFORM} \ RUN spack add juggler@${JUGGLER_VERSION} \
cd /tmp \ && spack concretize \
&& echo "INSTALLING JUGGLER" \ && spack install
&& git clone -b ${JUGGLER_VERSION} --depth 1 \
https://eicweb.phy.anl.gov/EIC/juggler.git \
&& export CCACHE_DIR=/ccache \
&& cmake -B build -S juggler \
-DCMAKE_CXX_FLAGS="-Wno-psabi" \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
&& cmake --build build -j${jobs} -- install \
&& pushd juggler \
&& echo " - juggler: ${JUGGLER_VERSION}-$(git rev-parse HEAD)" \
>> /etc/jug_info \
&& popd \
&& rm -rf build juggler
ADD https://api.github.com/repos/eic/eicrecon/commits/${EICRECON_VERSION} /tmp/eicrecon.json ## Install eicrecon to the environment
RUN --mount=type=cache,target=/ccache/,sharing=locked,id=${TARGETPLATFORM} \ RUN spack add eicrecon@${EICRECON_VERSION} \
cd /tmp \ && spack concretize \
&& echo "INSTALLING EICRECON" \ && spack install \
&& git clone -b ${EICRECON_VERSION} --depth 1 \
https://github.com/eic/eicrecon.git \
&& export CCACHE_DIR=/ccache \
&& cmake -B build -S eicrecon \
-DCMAKE_CXX_FLAGS="-Wno-psabi" \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
&& cmake --build build -j${jobs} -- install \
&& pushd eicrecon \
&& echo " - eicrecon: ${EICRECON_VERSION}-$(git rev-parse HEAD)" \
>> /etc/jug_info \
&& echo "export JANA_PLUGIN_PATH=/usr/local/lib/EICrecon/plugins" \ && echo "export JANA_PLUGIN_PATH=/usr/local/lib/EICrecon/plugins" \
> /etc/profile.d/z12_eicrecon.sh \ > /etc/profile.d/z12_eicrecon.sh
&& popd \
&& rm -rf build eicrecon
## also install detector/ip geometries into opt ## also install detector/ip geometries into opt
ARG NIGHTLY='' ARG NIGHTLY=''
......
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