3
3
set -ux
4
4
5
5
show_help () {
6
- echo " Deploys vcell client installers, webhelp and singularity images for a Kubernetes deploy"
6
+ echo " Deploys vcell client installers and webhelp for a Kubernetes deploy"
7
7
echo " "
8
8
echo " usage: deploy-action-kubernetes.sh [OPTIONS] REQUIRED-ARGUMENTS"
9
9
echo " "
@@ -30,14 +30,11 @@ show_help() {
30
30
echo " --webhelp-deploy-dir /remote/path/to/web/VCell_Help"
31
31
echo " directory for deployed html webhelp published on web server"
32
32
echo " "
33
- echo " --install-singularity optionally install batch and opt singularity images on each compute node in 'vcell' SLURM partition"
34
- echo " "
35
33
echo " "
36
34
echo " example:"
37
35
echo " "
38
36
echo " deploy-action-kubernetes.sh \\ "
39
37
echo " --ssh-user vcell \\ "
40
- echo " --install_singularity \\ "
41
38
echo " --build_installers --installer_deploy_dir /share/apps/vcell3/apache_webroot/htdocs/webstart/Alpha \\ "
42
39
echo " --webhelp_local_dir ../../vcell-client/target/classes/vcellDoc \\ "
43
40
echo " --webhelp_deploy_dir /share/apps/vcell3/apache_webroot/htdocs/webstart/VCell_Tutorials/VCell_Help \\ "
@@ -55,7 +52,6 @@ installer_deploy_dir=
55
52
webhelp_local_dir=
56
53
webhelp_deploy_dir=
57
54
build_installers=false
58
- install_singularity=false
59
55
while : ; do
60
56
case $1 in
61
57
-h|--help)
@@ -78,9 +74,6 @@ while :; do
78
74
shift
79
75
webhelp_deploy_dir=$1
80
76
;;
81
- --install-singularity)
82
- install_singularity=true
83
- ;;
84
77
--build-installers)
85
78
build_installers=true
86
79
;;
@@ -106,50 +99,6 @@ local_config_file=$2
106
99
vcell_siteCamel=$( grep VCELL_SITE_CAMEL " $local_config_file " | cut -d" =" -f2)
107
100
vcell_version=$( grep VCELL_VERSION_NUMBER " $local_config_file " | cut -d" =" -f2)
108
101
vcell_build=$( grep VCELL_BUILD_NUMBER " $local_config_file " | cut -d" =" -f2)
109
- batch_singularity_filename=$( grep VCELL_BATCH_SINGULARITY_FILENAME " $local_config_file " | cut -d" =" -f2)
110
- opt_singularity_filename=$( grep VCELL_OPT_SINGULARITY_FILENAME " $local_config_file " | cut -d" =" -f2)
111
- slurm_singularity_central_dir=$( grep VCELL_SLURM_CENTRAL_SINGULARITY_DIR " $local_config_file " | cut -d" =" -f2)
112
-
113
-
114
- #
115
- # install the singularity images on the cluster nodes
116
- #
117
- if [ " $install_singularity " == " true" ]; then
118
-
119
- echo " "
120
- pushd ../build/singularity-vm || (echo " pushd ../build/singularity-vm failed" ; exit 1)
121
- echo " "
122
- echo " CURRENT DIRECTORY IS $PWD "
123
-
124
- #
125
- # get configuration from config file and load into current bash environment
126
- #
127
- echo " "
128
-
129
- if [ ! -e " ./${batch_singularity_filename} " ]; then
130
- echo " failed to find local batch singularity image file $batch_singularity_filename in ./singularity-vm directory"
131
- exit 1
132
- fi
133
-
134
- if ! scp " ./${batch_singularity_filename} " " $ssh_user @$manager_node :${slurm_singularity_central_dir} " ; then
135
- echo " failed to copy batch singularity image to server"
136
- exit 1
137
- fi
138
-
139
- if [ ! -e " ./${opt_singularity_filename} " ]; then
140
- echo " failed to find local opt singularity image file $opt_singularity_filename in ./singularity-vm directory"
141
- exit 1
142
- fi
143
-
144
- if ! scp " ./${opt_singularity_filename} " " $ssh_user @$manager_node :${slurm_singularity_central_dir} " ; then
145
- echo " failed to copy opt singularity image to server"
146
- exit 1
147
- fi
148
-
149
- echo " popd"
150
- popd || (echo " popd failed" ; exit 1)
151
- fi
152
-
153
102
154
103
#
155
104
# if --build-installers, then generate client installers, placing then in ./generated_installers
0 commit comments