Lab 2 - Using an existing image to create a project
for 4.3 - use the following link: https://github.com/IBM/openshift-on-ibm-cloud-workshops
Last updated
Was this helpful?
for 4.3 - use the following link: https://github.com/IBM/openshift-on-ibm-cloud-workshops
Last updated
Was this helpful?
For Red Hat OpenShift 4.3 please use the following link : https://github.com/IBM/openshift-on-ibm-cloud-workshops
This is a quick lab that demonstrates how to deploy a public image from Docker Hub onto OpenShift. As starting point an image of the 'authors' microservice from this workshop has already been loaded on Docker Hub.
Note: Not all images from Docker Hub can be used on OpenShift. For example, OpenShift does not run containers as 'root' which means that a lot of images from Docker Hub won't start. See the OpenShift documentation for details.
If it isn't already open, open the OpenShift Web Console from the IBM Cloud OpenShift dashboard.
In the 'Developer' view, select '+Add', and make sure your project is selected. Then click on 'Deploy Image':
Select 'Image name from external registry', enter 'nheidloff/authors:v1' as the image name, then click the search icon. This will retrieve and display image information from DockerHub.
Scroll down. Change 'Application Name' and 'Name' to "authors-img". Select 'Deployment Config' as 'Resource'. Leave the option to create a route checked. Click on 'Create'.
Look at the topology - click on "DC authors-img". In the 'Resources' view you can see a pod, a service, and a route:
Click on the URL of 'authors-img' Route, this will open the default Open Liberty Welcome page. Append '/openapi/ui' to the URL.
This opens the Open API user interface to try the REST API.
Continue with Lab 7 - Deployments of Code in GitHub Repos