Red Hat OpenShift WorldTour
  • Red Hat OpenShift Workshop
  • Accessing IBM Cloud - the Free Lite Account
  • Lab 1 - Start with a Docker Image
  • Command Line Interface - Using the CLI in a Terminal
  • Claiming Your Red Hat OpenShift Cluster for This Workshop
  • Pre-Requesites Lab 2
  • Lab 2 - Using an existing image to create a project
  • Lab 3 - stretch goal
  • Lab 3 with LogDNA
  • Next Steps
    • IBM/minishift101 - step 1 - accessing cluster
    • IBM/minishift101 - step 2 - creating an app from source
    • IBM/minishift101 - step 3
    • IBM/minishift101 - step 4 networking
  • How Did You Like This Workshop?
  • FAQ
    • Lab 2 v 3.x - Using an existing image to create a project
    • Lab 3 - Deploying a Project to Red Hat OpenShift Kubernetes Cluster
      • Lab 3 - setting up
      • Lab 3 - instructions on creating an OpenShift project
Powered by GitBook
On this page
  • Overview
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5

Was this helpful?

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

PreviousPre-Requesites Lab 2NextLab 3 - stretch goal

Last updated 4 years ago

Was this helpful?

Overview

For Red Hat OpenShift 4.3 please use the following link :

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 for details.

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
https://github.com/IBM/openshift-on-ibm-cloud-workshops
documentation
select Container Image
Select Deployment Config, and click Create