Bookmark this page

Guided Exercise: Creating a Lab Environment and Configuring the classroom environment

In this exercise, you will configure your development environment to work with 3scale, which runs on OpenShift.

Outcomes

You should be able to:

  • Log in to your lab environment.

  • Log in to OpenShift.

  • Clone the DO240-apps GitHub repository.

As the student user on the workstation machine, use the lab command to prepare your system for this exercise.

[student@workstation ~]$ lab start install-principles

Procedure 1.1. Instructions

  1. Log in to RHOCP.

    1. In a command-line terminal, run the oc login command with the following credentials:

      • Username: admin

      • Passsword: redhat

      [student@workstation ~]$ oc login -u admin -p redhat api.ocp4.example.com:6443
      Login successful.
      
      ...output omitted...
  2. Clone the DO240-apps GitHub repository. This repository contains scripts and applications that you will use throughout the course.

    1. Run the git clone command to clone the repository.

      [student@workstation ~]$ git clone \
       https://github.com/RedHatTraining/DO240-apps.git
      ...output omitted...
    2. To execute the scripts later in the course, grant execution permissions to the files in the scripts directory.

      [student@workstation ~]$ chmod +x DO240-apps/scripts/*
      ...output omitted...

Finish

On the workstation machine, use the lab command to complete this exercise.

[student@workstation ~]$ lab finish install-principles

This concludes the guided exercise.

Revision: do240-2.11-40390f6