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

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

parent c05f2eb4
No related branches found
No related tags found
No related merge requests found
......@@ -78,14 +78,17 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
ARG CACHE_BUST="hash"
ARG CACHE_NUKE=""
## Setup our custom environment and package overrides
COPY spack $SPACK_ROOT/eic-spack
RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \
&& mkdir /opt/spack-environment \
&& cd /opt/spack-environment \
&& mv $SPACK_ROOT/eic-spack/spack.yaml . \
&& rm -r /usr/local \
&& spack env activate . \
## Setup our custom package overrides
ENV EICSPACK_ROOT=$SPACK_ROOT/var/spack/repos/eic-spack
ARG EICSPACK_VERSION="$SPACK_VERSION"
RUN git clone https://github.com/eic/eic-spack.git ${EICSPACK_ROOT} \
&& git -C ${EICSPACK_ROOT} checkout ${EICSPACK_VERSION} \
&& 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment