Skip to content
Snippets Groups Projects
Commit d81cb15e authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

add empty site-config dir for lab to make pipelines pass

parent 66092123
No related branches found
No related tags found
2 merge requests!368create new experimental release,!367Add site specific configs
...@@ -6,6 +6,7 @@ variables: ...@@ -6,6 +6,7 @@ variables:
GITLAB_BUILD_ENV_DOCKER_IMAGE: docker-registry.ebrains.eu/tc/ebrains-spack-build-env/gitlab_runners_nfs:devel GITLAB_BUILD_ENV_DOCKER_IMAGE: docker-registry.ebrains.eu/tc/ebrains-spack-build-env/gitlab_runners_nfs:devel
SPACK_VERSION: v0.19.2 SPACK_VERSION: v0.19.2
SPACK_PATH_GITLAB: /mnt/spack_v0.19.2 SPACK_PATH_GITLAB: /mnt/spack_v0.19.2
SYSTEMNAME: ebrainslab
# start an OpenShift Job that will build the Spack environment # start an OpenShift Job that will build the Spack environment
.deploy-build-environment: .deploy-build-environment:
...@@ -197,6 +198,7 @@ build-spack-env-on-runner: ...@@ -197,6 +198,7 @@ build-spack-env-on-runner:
- spack compiler find - spack compiler find
- spack repo add . - spack repo add .
- spack env create $SPACK_DEV_ENV spack.yaml - spack env create $SPACK_DEV_ENV spack.yaml
- cp -r site-config $SPACK_ROOT/var/spack/environments/$SPACK_DEV_ENV/
- spack env activate $SPACK_DEV_ENV - spack env activate $SPACK_DEV_ENV
- spack install -y -j2 --fresh --test root - spack install -y -j2 --fresh --test root
after_script: after_script:
...@@ -270,8 +272,8 @@ sync-gitlab-spack-instance: ...@@ -270,8 +272,8 @@ sync-gitlab-spack-instance:
- spack compiler list - spack compiler list
# activate and update environment (and create it, if it doesn't exist) # activate and update environment (and create it, if it doesn't exist)
- spack env list | grep -q $SPACK_NFS_ENV && echo "Environment created already" || spack env create $SPACK_NFS_ENV $CI_PROJECT_DIR/spack.yaml - spack env list | grep -q $SPACK_NFS_ENV && echo "Environment created already" || spack env create $SPACK_NFS_ENV $CI_PROJECT_DIR/spack.yaml
- cp -r -t $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/ $CI_PROJECT_DIR/{site-config,spack.yaml}
- spack env activate $SPACK_NFS_ENV - spack env activate $SPACK_NFS_ENV
- cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml
# There is a known spack bug (https://github.com/spack/spack/issues/29447) in installing test dependencies for installation tests. The workaround suggested # There is a known spack bug (https://github.com/spack/spack/issues/29447) in installing test dependencies for installation tests. The workaround suggested
# in the issue is to NOT concretize separately, but simply remove the .lock file and let the enironment be concretized by the spack install command: # in the issue is to NOT concretize separately, but simply remove the .lock file and let the enironment be concretized by the spack install command:
- rm $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.lock || echo "No spack.lock file" - rm $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.lock || echo "No spack.lock file"
......
...@@ -39,6 +39,8 @@ spec: ...@@ -39,6 +39,8 @@ spec:
mountPath: /srv mountPath: /srv
command: ["/usr/local/bin/deploy-build-env.sh", "$OP", "$INSTALLATION_ROOT", "$SPACK_VERSION", "$SPACK_ENV", "$BRANCH", "$RELEASE_NAME", "$LAB_KERNEL_ROOT"] command: ["/usr/local/bin/deploy-build-env.sh", "$OP", "$INSTALLATION_ROOT", "$SPACK_VERSION", "$SPACK_ENV", "$BRANCH", "$RELEASE_NAME", "$LAB_KERNEL_ROOT"]
env: env:
- name: SYSTEMNAME
value: ebrainslab
- name: GITLAB_USER - name: GITLAB_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
......
...@@ -50,7 +50,7 @@ then ...@@ -50,7 +50,7 @@ then
fi fi
# update and activate environment # update and activate environment
cp $EBRAINS_REPO/spack.yaml $SPACK_ROOT/var/spack/environments/$EBRAINS_SPACK_ENV/spack.yaml cp -r -t $SPACK_ROOT/var/spack/environments/$EBRAINS_SPACK_ENV/ $EBRAINS_REPO/{site-config,spack.yaml}
spack env activate $EBRAINS_SPACK_ENV spack env activate $EBRAINS_SPACK_ENV
# There is a known spack bug (https://github.com/spack/spack/issues/29447) in installing test dependencies # There is a known spack bug (https://github.com/spack/spack/issues/29447) in installing test dependencies
# for installation tests. The workaround suggested in the issue is to NOT concretize separately, but simply # for installation tests. The workaround suggested in the issue is to NOT concretize separately, but simply
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment