Skip to content
Snippets Groups Projects
Commit 91c287f8 authored by Athanasios Karmas's avatar Athanasios Karmas
Browse files

Script to load simulation software on the Collaboratory Lab containers from...

Script to load simulation software on the Collaboratory Lab containers from the Object Storage at CSCS
parent f2ace22e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#title :load_sim_tools.sh
#description :Script to load simulation software on the Collaboratory Lab containers from the Object Storage at CSCS.
#author :Athanasios Karmas
#date :20210601
#usage :source ./load_sim_tools.sh
#==============================================================================
echo "Downloading files..."
wget https://object.cscs.ch/v1/AUTH_9c619ee75cab4993b1c4c86a37586357/test_spack/spack_20210601.tar.gz
wget https://object.cscs.ch/v1/AUTH_9c619ee75cab4993b1c4c86a37586357/test_spack/spack_tmp_20210601.tar.gz
wget https://object.cscs.ch/v1/AUTH_9c619ee75cab4993b1c4c86a37586357/test_spack/shared_libs.tar.gz
echo "Extracting..."
tar -xzvf spack_20210601.tar.gz
tar -xzvf spack_tmp_20210601.tar.gz
tar -xzvf shared_libs.tar.gz
rm -f spack_20210601.tar.gz
rm -f spack_tmp_20210601.tar.gz
rm -f shared_libs.tar.gz
echo "Setting up environment..."
mv spack/ /opt/app-root/src/
mv .spack /opt/app-root/src/
mv shared_libs /opt/app-root/src/
cd /opt/app-root/src
source spack/share/spack/setup-env.sh
export LD_LIBRARY_PATH=/opt/app-root/src/shared_libs:$LD_LIBRARY_PATH
echo "Loading packages..."
spack load -r python %gcc@9.3.1
spack load -r py-numpy %gcc@9.3.1
spack load -r arbor %gcc@9.3.1
spack load -r neuron %gcc@9.3.1
spack load -r nest %gcc@9.3.1
echo "Everything ready!"
#echo "Starting Python..."
#python
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