Prerequisties
Overview
An IBM Cloud account is needed.
We will use preconfigured OpenShift on IBM Cloud clusters in this hands-on workshop. You should have received information from your lab instructor to get access to one of these clusters.
1. Work Environment
For the optional Java developer labs 2 and 3 you need a local docker
and git
installation.
For the rest of the labs we will use the IBM Cloud Shell (Beta):
- In your browser, login to the IBM Cloud Dashboard
-
Make sure you select your own account in the account list, then click on the IBM Cloud Shell Icon
Note: Your workspace includes 500 MB of temporary storage. This session will close after an hour of inactivity. If you don’t have any active sessions for an hour or you reach the 30-hour weekly usage limit, your workspace data is removed. To track your usage, go to Usage quota in the Cloud Shell menu.
2. Get the code
In the IBM Cloud Shell execute the following commands:
$ git clone https://github.com/IBM/openshift-on-ibm-cloud-workshops.git
$ cd openshift-on-ibm-cloud-workshops
$ ROOT_FOLDER=$(pwd)
3. Get Access to OpenShift on the IBM Cloud
a. Open the OpenShift console.
-
Go back to the IBM Cloud Dashboard (https://cloud.ibm.com).
-
Switch from your own account to the IBM account given to you by the instructor from the pulldown in the uper right corner.
-
Select OpenShift -> Clusters in the ‘burger’ menu
-
Click on your OpenShift cluster
-
Open the OpenShift web console
b. Get the access token for the ‘oc’ CLI.
-
From the dropdown menu in the upper right of the page, click ‘Copy Login Command’.
-
Click on ‘Display Token’, then copy and paste the command ‘Log in with this token’ into your terminal in the IBM Cloud Shell.
-
Login to OpenShift in IBM Cloud Shell
$ oc login https://c1XX-XX-X.containers.cloud.ibm.com:XXXXX --token=xxxxxx'
Continue with Lab 4 - Deploying to OpenShift