Skip to content
Snippets Groups Projects
Commit c425d183 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Fix setup with local spack package overrides

parent 791a8341
Branches
Tags
1 merge request!16New feature version
...@@ -14,6 +14,7 @@ builder:stable: ...@@ -14,6 +14,7 @@ builder:stable:
- tags - tags
- master - master
script: script:
- cp -r spack containers/builder/np-spack
- cd containers/builder - cd containers/builder
- head Dockerfile - head Dockerfile
- make login - make login
...@@ -28,6 +29,7 @@ builder:unstable: ...@@ -28,6 +29,7 @@ builder:unstable:
- if: '$CI_COMMIT_BRANCH == "develop"' - if: '$CI_COMMIT_BRANCH == "develop"'
when: always when: always
script: script:
- cp -r spack containers/builder/np-spack
- cd containers/builder - cd containers/builder
- head Dockerfile - head Dockerfile
- make login - make login
......
...@@ -32,11 +32,9 @@ COPY spack.yaml /opt/spack-environment/spack.yaml ...@@ -32,11 +32,9 @@ COPY spack.yaml /opt/spack-environment/spack.yaml
## and only initialize the custom packages here for more ## and only initialize the custom packages here for more
## transparency ## transparency
RUN rm -rf $SPACK_ROOT/np-spack \ RUN rm -rf $SPACK_ROOT/np-spack \
&& pwd \
&& cp -r ../../spack $SPACK_ROOT/np-spack \
&& cd $SPACK_ROOT/np-spack \
&& echo "repos:" > $SPACK_ROOT/etc/spack/repos.yaml \ && echo "repos:" > $SPACK_ROOT/etc/spack/repos.yaml \
&& echo " - $SPACK_ROOT/np-spack" >> $SPACK_ROOT/etc/spack/repos.yaml && echo " - $SPACK_ROOT/np-spack" >> $SPACK_ROOT/etc/spack/repos.yaml
COPY np-spack $SPACK_ROOT/np-spack
## Install the software, no garbage collection at this stage ## Install the software, no garbage collection at this stage
## as this is a raw builder image ## as this is a raw builder image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment