View on GitHub

workshop-quarkus-openshift-reactive-messaging

Workshop: Reactive Messaging with Quarkus on OpenShift

Navigator:


Lab 1: Create your Work Environment

The main instructions of this workshop assume that you will use Red Hat OpenShift 4.3 on IBM Cloud. However you can also use CodeReady Containers to run OpenShift locally.

To use OpenShift on IBM Cloud and LogDNA in lab 8, an IBM Cloud account is needed. It’s free, doesn’t expire and for the lite account no credit card is required.

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.

Step 1: Set up Terminal

When using OpenShift on IBM Cloud no client side setup is required for this workshop. Instead we will use the IBM Cloud Shell (Beta) which comes with all necessary CLIs (command line tools).

In your browser, login to the IBM Cloud Dashboard. Make sure you select your own account in the account list at the top, then click on the IBM Cloud Shell icon.

Note: Your workspace includes 500 MB of temporary storage. Your session closes after 30 minutes of inactivity. If you’re inactive in Cloud Shell for over an hour, your workspace data is removed. It’s also removed if you reach the 4-hour continuous usage or 30-hour weekly usage limits.

This is what you should see:

When using OpenShift locally, you need a local terminal and the following tools:

Step 2: Get the Code

In the IBM Cloud Shell execute the following command:

$ git clone https://github.com/IBM/cloud-native-starter.git

Step 3. Get Access to OpenShift

Open the IBM Cloud Dashboard. In the row at the top switch from your own account to the IBM account given to you by the instructor from the pulldown in the uper right corner.

The select ‘OpenShift’ in the burger menu in the upper left corner followed by ‘Clusters’.

Select Open Shift in the menu

Click on your cluster.

C

Open the OpenShift web console.

Open the OpenShift web console

From the dropdown menu in the upper right of the page, click ‘Copy Login Command’.

Key

Click on ‘Display Token’, then copy and paste the command ‘Log in with this token’ into your terminal in the IBM Cloud Shell.

Key

Login to OpenShift in IBM Cloud Shell

$ oc login https://c1XX-XX-X.containers.cloud.ibm.com:XXXXX --token=xxxxxx'

oc login in cloudshell


Continue with Lab 2: Deploy Kafka via Script