Resources

OpenShift Credentials

  • username: username
  • password: user-password

Dev Spaces

Developer Console

Matrix

Rocket.Chat

BGCreated with Sketch.

Tasks to complete

Get Started
BGCreated with Sketch.

Congratulations!

Return to the dashboard to continue your journey.

Go to home

Development environment

The following instructions introduce you to your development environment, and the cluster where you’ll deploy your applications throughout this workshop.

Overview

Built on the open Eclipse Che project, Red Hat OpenShift Dev Spaces uses Kubernetes and containers to provide any member of the development or IT team with a consistent, secure, and zero-configuration development environment. The experience is as fast and familiar as an integrated development environment on your laptop.

devspaces ide developer

OpenShift Dev Spaces is included with your OpenShift subscription and is available in the Operator Hub. It provides development teams a faster and more reliable foundation on which to work, and it gives operations centralized control and peace of mind.


Log in OpenShift Dev Spaces

To access your development environment:

  1. Click this Console link.
    (Also accessible from the Resources panel on the right, under Red Hat OpenShift Dev Spaces).

  2. You’ll be first prompted to choose OpenShift to log in.
    Click the button Log in with OpenShift:

    devspaces login with ocp

  3. Then, log in using your lab credentials:

    • Username: username

    • Password: user-password

    devspaces login

  4. Next, authorise access, click Allow selected permissions

    devspaces dashboard auth


    Once you are logged in, you’ll see the Dev Spaces dashboard. This lists available workspaces.

    Dev Spaces Dashboard


Accessing your Dev Spaces Workspace

This workshop provides a single, pre-configured workspace with plugins, source code, and even container images that have various Command-Line Interface (CLI) tools installed.

  1. Click the Open link for the workspace named camel-lab.

    Open Dev Spaces Workspace

    devspaces-dashboard-open

    {x: 85.5, y: 88, rot: 0, size: 0.5}

    {x: 85.5, y: 115, size: 1.5}


    This will start an instance of the workspace. Please wait a few moments while it downloads the required container images and configuration setup.


  2. When the IDE appears, ensure you:

    1. Click Trust Publisher & Install

      Trust Publisher Red Hat



    →

    1. Next, click Trust Workspace & Install

      Trust Workshop Project
    Did you miss any of the notifications above?

    If so, the simplest solution is to close your browser tab (close your workspace tab) and re-open it, by repeating step 1.
    The notifications will then be shown again.

    This IDE is based on Microsoft VS Code. It will look familiar if you have already used it.


  3. Close all the tabs in the editor.

    Find the menu in the top right corner of the editor and click as follows:

    dev close tabs

    close-tabs-img

    {x: 97, y: 30, rot: 270, size: 2} {x: 97, y: 68, rot: 270, size: 2}

    {x: 138, y: 30, size: 3} {x: 138, y: 68, size: 3}

    1. Click the …​ button

    2. Select Close All.


Open a Terminal

From Dev Spaces, open a terminal following the steps illustrated below:

toggle terminal


Copy/Paste Commands

You’ll use command actions all along the lab.
When the lab’s instructions present a command to execute, perform the steps described below, as illustrated:

copypaste

  1. Click the button Copy to clipboard

  2. Paste the command in the terminal:

    • on Linux: Ctrl+Shift+v

    • on Mac: ⌘+v

  3. Try it with:

    echo "this is a multiline \ copy/paste test"

    You’ll be asked to share the clipboard and next to confirm the action.

    1. Click Allow

      devspaces share clipboard



    →

    1. If asked, tick [✓] Do not ask me again and then click Paste

      devspaces paste confirm
    It’s been reported that these key-combos not always work. Your machine may not respond to the above descriptions. Please try other key or mouse click alternatives, for example, right-click, or middle-click.

  4. If the paste action fails and you see Dev Spaces showing the following notification:

    clipboard notification

    Find in your web browser’s settings where to enable clipboard permissions. The image below shows how to enable them using Chrome:

    clipboard settings


Did your terminal show and your copy/paste action worked?

You are now ready to start working !

Make sure you follow the commands above. Try again.