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

Commit 6dcc766

Browse files
authored
Merge pull request #195 from dubek/use-icr-io
Pull helayers from IBM Container Registry
2 parents 4911ce2 + 4ddd2ad commit 6dcc766

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ For the C++ version:
3030

3131
The script will pull & download the latest version that works on your machine's architecture. It will run locally in its own container for you to view in your web browser. The script will tell you where to point your browser to in the Terminal after completing the setup. The c++ version uses VSCode integrated into the browser for an IDE, using port 8443, and the python relies on a self-contained jupyter notebook on port 8888.
3232

33-
To try HELayers out from Dockerhub directly, you can use these links below:
33+
To try HELayers out from the IBM Container Registry directly, follow the instructions below:
3434

3535
* Python
36-
* [HELayers Python x86](https://hub.docker.com/r/ibmcom/helayers-pylab)
37-
* [HELayers Python s390x](https://hub.docker.com/r/ibmcom/helayers-pylab-s390x)
36+
* [HELayers Python x86](https://ibm.github.io/helayers/pylab/)
37+
* [HELayers Python s390x](https://ibm.github.io/helayers/pylab-s390x/)
3838
* C++
39-
* [HELayers C++ x86](https://hub.docker.com/r/ibmcom/helayers-lab)
40-
* [HELayers C++ s390x](https://hub.docker.com/r/ibmcom/helayers-lab-s390x)
39+
* [HELayers C++ x86](https://ibm.github.io/helayers/lab/)
40+
* [HELayers C++ s390x](https://ibm.github.io/helayers/lab-s390x/)
4141

4242
### Take a look at our in-depth walkthrough video on how to download and get started with HElayers.
4343

StartHELayers.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ print_usage(){
4141
${bold}Usage: $SCRIPTNAME [options] LAB_TYPE${normal}
4242
4343
${bold}LAB_TYPE${normal} Selects the type of lab to
44-
download the HELayers container from Docker Hub.
44+
download the HELayers container from IBM Container Registry.
4545
Available lab types are:
4646
x86_64/amd64: {cpp, python}
4747
s390x: {cpp, python}
@@ -148,6 +148,7 @@ else
148148
fi
149149
fi
150150

151+
image="icr.io/helayers/helayers-$imagesuffix:latest"
151152

152153
################################################################
153154
# The script has the following arguments:
@@ -173,19 +174,18 @@ echo " Lab: $labtype "
173174
echo ""
174175
echo "==============================================================="
175176

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

185-
docker run -p $labport:$labport -d --rm --name helayers-$imagesuffix ibmcom/helayers-$imagesuffix:latest
185+
docker run -p $labport:$labport -d --rm --name helayers-$imagesuffix "$image"
186186
if [ $? -ne 0 ]; then
187187
echo " "
188-
echo " FATAL: Aborting. There was an issue running the image ibmcom/helayers-$imagesuffix "
188+
echo " FATAL: Aborting. There was an issue running the image $image"
189189
echo " "
190190
exit -1
191191
fi

0 commit comments

Comments
 (0)