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

fix: oneapi dev based on eic-spack

parent 28684952
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !324. Comments created here will be created in the context of that merge request.
...@@ -88,14 +88,20 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \ ...@@ -88,14 +88,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment