Application development with Red Hat Developer Hub

Learn how to onboard developers onto Red Hat Developer Hub, so they can import and use relevant templates and run the application on the development environment.

OpenShift Dev Spaces is a container-based service for creating consistent and secured developer environments on Red Hat OpenShift. You can quickly spin up a development environment with everything you need, all hosted on OpenShift.

What you will do

  • Launch the Dev Spaces (VS-Code) with Developer Hub

Launch Dev Spaces with Developer Hub

A crucial requirement for developers in Kubernetes or OpenShift environments is a streamlined development or debugging environment. DevSpaces effectively bridges this gap. This lesson  will help you launch Dev Spaces using following instructions.

  1. From the left menu, select the Catalog option.
  2. Under All Components, you will find the most recently created catalog named redhat-developer-demos. Click it.
  3. In the Links section, you will see the option for OpenShift DevSpaces (VS Code). Click it.
  4. Click Log in with OpenShift (Figure 13).
    dev hub app dev lp figure 13
    Figure 13: Authorize Dev Spaces with OpenShift login credentials.
  5. Once you are redirected to the OpenShift login page, enter your credentials for the Developer Sandbox.
  6. In the next window, click DevSandbox (Figure 14).
    Developer Sandbox login page.
    Figure 14: View of DevSandbox login page.

Dev Spaces will create the development environment using the devfile.yaml from the repository. If the devfile doesn't exist, Dev Spaces will generate it automatically.

Info alert: You can customize your development environment with the help of devfile.

Throughout the construction of the development environment, you will encounter steps similar to those shown in Figure 15.

Launch view of Development environment with Dev Spaces.
Figure 15: Application repo fetch and launch with devfile.

The Developer Sandbox will now create the development environment pod. Upon revisiting the OpenShift cluster's Topology view, you will observe a similar view to the one shown in Figure 16.

Another pod appeared in the cluster for the development environment.
Figure 16: Topology dashboard of OpenShift.

After successfully building the development environment, you will have access to the virtual VS Code with all application dependencies. 

Click Yes, I trust the author to commence the development process (Figure 17).

Popup wizard for author trust acceptance.
Figure 17: Trust the author option in Dev Spaces.

You have now launched Dev Spaces with Red Hat Developer Hub in the Developer Sandbox. Ready for more? In the next lesson, you will run the application on the Developer Sandbox.

Previous resource
Launch the technology template
Next resource
Run an application in the development environment on the Developer Sandbox