Skip to content
Snippets Groups Projects

feat: use github.com/eic/eic-spack as local eic-spack repo

Merged Wouter Deconinck requested to merge github-eic-spack into master
Files
16
@@ -78,14 +78,20 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
@@ -78,14 +78,20 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
ARG CACHE_BUST="hash"
ARG CACHE_BUST="hash"
ARG CACHE_NUKE=""
ARG CACHE_NUKE=""
## Setup our custom environment and package overrides
## Setup our custom package overrides
COPY spack $SPACK_ROOT/eic-spack
ENV EICSPACK_ROOT=$SPACK_ROOT/var/spack/repos/eic-spack
RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \
ARG EICSPACK_VERSION="$SPACK_VERSION"
&& mkdir /opt/spack-environment \
RUN git clone https://github.com/eic/eic-spack.git ${EICSPACK_ROOT} \
&& cd /opt/spack-environment \
&& git -C ${EICSPACK_ROOT} checkout ${EICSPACK_VERSION} \
&& mv $SPACK_ROOT/eic-spack/spack.yaml . \
&& if [ -n "${EICSPACK_CHERRYPICKS}" ] ; then \
&& rm -r /usr/local \
git -C ${EICSPACK_ROOT} cherry-pick -n ${EICSPACK_CHERRYPICKS} ; \
&& spack env activate . \
fi \
 
&& spack repo add --scope site "${EICSPACK_ROOT}"
 
 
## Setup our custom environment
 
COPY spack.yaml /opt/spack-environment/
 
RUN rm -r /usr/local \
 
&& spack env activate /opt/spack-environment/ \
&& spack concretize
&& spack concretize
Loading