-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sh
29 lines (22 loc) · 1006 Bytes
/
config.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
if ! [ -e install_slurm.sh ] ; then
echo "You need to source this in the root of the cfiddle-cluster repo"
else
## you need to set these or put them in a file called cluster_nodes.sh
## Values in cluster_nodes.sh will override what's here.
#export HEAD_ADDR=
#export WORKER_ADDRS=
#export DOCKERHUB_USERNAME=
[ -e ./cluster_nodes.sh ] && . ./cluster_nodes.sh
export SLURM_UID=990
export SLURM_GID=990
# these are the values that get set when I build the images. Yours might be different.
export MUNGE_UID=991
export MUNGE_GID=991
export DELEGATE_FUNCTION_GIT_TAG=main
export CFIDDLE_GIT_TAG=devel
# create env variable aliases for the containers running our services, if we have docker available
if which docker >/dev/null && docker container ls > /dev/null; then
CONTAINER_ALIASES=$(docker container ls |perl -ne 'if (/ (slurm-stack_([^\.]*)-srv\.\S*)/) { print("export $2=$1\n");}')
eval $CONTAINER_ALIASES
fi
fi