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

Merge branch 'script-fixes' into 'master'

Script fixes

See merge request technical-coordination/project-internal/devops/platform/ebrains-spack-builds!203
parents afa35302 eb983731
No related branches found
No related tags found
No related merge requests found
......@@ -73,3 +73,6 @@ cat <<EOF >$KERNEL_PATH/$KERNEL_NAME/kernel.json
"env": { "LAB_KERNEL_NAME": "$RELEASE_NAME", "LAB_KERNEL_RELEASE_DATE": "$(date +"%Y-%m-%d")" }
}
EOF
# add EBRAINS logo to kernel
cp $LAB_KERNEL_ROOT/../logo/logo-64x64.png $KERNEL_PATH/$KERNEL_NAME/
......@@ -23,12 +23,14 @@ then
git clone --depth 1 -c advice.detachedHead=false -c feature.manyFiles=true --branch $SPACK_VERSION https://github.com/spack/spack $INSTALLATION_ROOT/spack
cp $EBRAINS_REPO/packages.yaml $INSTALLATION_ROOT/spack/etc/spack/packages.yaml
source $INSTALLATION_ROOT/spack/share/spack/setup-env.sh
# install platform compiler and python
# install platform compiler and python (extract versions from packages.yaml)
EBRAINS_SPACK_COMPILER=$(grep 'compiler' $EBRAINS_REPO/packages.yaml | awk -F'[][]' '{ print $2 }')
EBRAINS_SPACK_PYTHON=python@$(grep -A1 'python' $EBRAINS_REPO/packages.yaml | tail -n1 | awk -F'[][]' '{ print $2 }')
spack compiler find
spack install gcc@10.3.0
spack load gcc@10.3.0
spack install $EBRAINS_SPACK_COMPILER
spack load $EBRAINS_SPACK_COMPILER
spack compiler find
spack install python@3.8.11 %gcc@10.3.0
spack install $EBRAINS_SPACK_PYTHON %$EBRAINS_SPACK_COMPILER
else
source $INSTALLATION_ROOT/spack/share/spack/setup-env.sh
fi
......
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