-
Notifications
You must be signed in to change notification settings - Fork 9
/
build_stack_arvine_gcp.sh
executable file
·42 lines (34 loc) · 1.09 KB
/
build_stack_arvine_gcp.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -euo pipefail
export DRY_RUN='no'
export STACK_RELEASE="arvine-gcp"
export SENV_VIRTUALENV_PATH="${HOME}/${STACK_RELEASE}/virtualenv/senv-py27"
# Create virtual env
./jenkins/deploy/scripts/update_production_configuration.sh
# Do some checks
./jenkins/senv.sh status
./jenkins/senv.sh spack-checkout
./jenkins/senv.sh spack-checkout-extra-repos
env | sort
# Create the environments
./jenkins/deploy/scripts/create_environments.sh yes
# Install compilers
for env in $(senv --input arvine-gcp.yaml list-envs)
do
./jenkins/deploy/scripts/install_production_compilers.sh ${env}
done
# Finish creating the environements
./jenkins/deploy/scripts/create_environments.sh no
# Concretize the environements
for env in $(senv --input arvine-gcp.yaml list-envs)
do
./jenkins/deploy/scripts/concretize.sh ${env}
done
# Fetch to the mirror
./jenkins/deploy/scripts/populate_mirror.sh
# Install and activates the packages
for env in $(senv --input arvine-gcp.yaml list-envs)
do
./jenkins/deploy/scripts/install_production_stack.sh ${env}
./jenkins/deploy/scripts/activate_packages.sh ${env}
done