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
Overview
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.
Step 1
If it isn't already open, open the OpenShift Web Console from the IBM Cloud OpenShift dashboard.
Step 2
In the 'Developer' view, select '+Add', and make sure your project is selected. Then click on 'Deploy Image':

Step 3
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'.

Step 4
Look at the topology - click on "DC authors-img". In the 'Resources' view you can see a pod, a service, and a route:

Step 5
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
Last updated
Was this helpful?