Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit e60bf26

Browse files
committed
switched lab to cpp for selection
1 parent 383b144 commit e60bf26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

StartHELayers.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ print_usage(){
4343
${bold}LAB_TYPE${normal} Selects the type of lab to
4444
download the HELayers container from Docker Hub.
4545
Available lab types are:
46-
x86_64/amd64: {lab, python}
47-
s390x: {lab, python}
46+
x86_64/amd64: {cpp, python}
47+
s390x: {cpp, python}
4848
4949
${bold}OPTIONS:${normal}
5050
-h Displays this help information.
@@ -118,7 +118,7 @@ then
118118
if [[ "$labtype" = "python" ]]
119119
then
120120
imagesuffix="pylab-s390x"
121-
elif [[ "$labtype" = "lab" ]]
121+
elif [[ "$labtype" = "cpp" ]]
122122
then
123123
imagesuffix="lab-s390x"
124124
else
@@ -134,7 +134,7 @@ else
134134
then
135135
imagesuffix="pylab"
136136
labport="8888"
137-
elif [[ "$labtype" = "lab" ]]
137+
elif [[ "$labtype" = "cpp" ]]
138138
then
139139
imagesuffix="lab"
140140
labport="8443"
@@ -174,15 +174,15 @@ echo ""
174174
echo "==============================================================="
175175

176176
docker pull ibmcom/helayers-$imagesuffix
177-
docker tag ibmcom/helayers-$imagesuffix ibmcom/helayers-$labtype
177+
docker tag ibmcom/helayers-$imagesuffix ibmcom/helayers-$imagesuffix
178178
if [ $? -ne 0 ]; then
179179
echo " "
180180
echo " FATAL: Aborting. There was an issue pulling the image ibmcom/helayers-$imagesuffix "
181181
echo " "
182182
exit -1
183183
fi
184184

185-
docker run -p $labport:$labport -d --rm --name helayers-$labtype ibmcom/helayers-$labtype:latest
185+
docker run -p $labport:$labport -d --rm --name helayers-$imagesuffix ibmcom/helayers-$imagesuffix:latest
186186
if [ $? -ne 0 ]; then
187187
echo " "
188188
echo " FATAL: Aborting. There was an issue running the image ibmcom/helayers-$imagesuffix "
@@ -195,7 +195,7 @@ then
195195
echo " "
196196
echo " Container started. Navigate to: http://127.0.0.1:8888/lab/?token=demo-experience-with-fhe-and-python "
197197
echo " "
198-
elif [[ "$labtype" = "lab" ]]
198+
elif [[ "$labtype" = "cpp" ]]
199199
then
200200
echo " "
201201
echo " Container started. Navigate to: http://127.0.0.1:8443/ "

0 commit comments

Comments
 (0)