Breadcrumb

  1. Red Hat Interactive Learning Portal
  2. Red Hat Enterprise Linux learning
  3. Build and deploy a Java application using Quarkus with image mode for RHEL and the Red Hat build of Podman Desktop
  4. Access the Red Hat container registry

Build and deploy a Java application using Quarkus with image mode for RHEL and the Red Hat build of Podman Desktop

Use the Red Hat build of Podman Desktop to create a minimal, bootable Java application image with Quarkus for Red Hat Enterprise Linux (RHEL) image mode. Integrate the application into a bootable container.

The Red Hat Single Sign-On (SSO) extension in the Red Hat build of Podman Desktop allows you to register with a no-cost developer subscription and access the Red Hat container registry for image mode for Red Hat Enterprise Linux (RHEL). 

Get the Red Hat extension pack for the Red Hat build of Podman Desktop to access all the Red Hat extensions. The Red Hat extension pack consists of:

  • Red Hat OpenShift Local
  • Red Hat SSO
  • AI Lab
  • Red Hat Developer Sandbox
  • The bootc extension

Prerequisites:

In this lesson, you will:

  • Sign in using Red Hat SSO and the Red Hat Authentication extension.

Add the Red Hat extension pack

In this learning path, we will use Red Hat SSO and bootc extension to create and build a bootable container. 

Follow these steps to get started:

  1. Open the Red Hat build of Podman Desktop on your local machine. 
    Note: If this is your first time using the Red Hat build of Podman Desktop, you may be prompted to install Podman and set up a Podman machine. Follow those steps before continuing.
  2. Because you are using the Red Hat build of Podman Desktop, the bootable container, Red Hat subscriptions, registries, and virtual machine (VM) extensions used through the lab will be pre-installed. Once logged in, go to the Extensions tab and confirm that these extensions are present (Figure 1).

    Installed tab of the Extensions section in the Red Hat build of Podman Desktop displaying a list of pre-installed extensions.
    Figure 1: Installed tab of the Extensions section in the Red Hat build of Podman Desktop.
  3. You will need to sign in using Red Hat SSO and the Red Hat Authentication extension. Select the Installed tab from the Extensions section and scroll down to locate the Red Hat Authentication extension as shown in Figure 2. 

    Installed tab of the Extensions section in the Red Hat build of Podman Desktop displaying Red Hat Authentication extension at the top.
    Figure 2: Installed tab of the Extensions section in the Red Hat build of Podman Desktop.
  4. Select Settings from the bottom of the left side menu bar and navigate to Authentication. You will see Red Hat SSO listed and that you are currently logged out (Figure 3).

    Authentication tab with Red Hat SSO showing as logged out.
    Figure 3: Authentication tab with Red Hat SSO showing as logged out.
  5. Select Sign in to continue.
  6. In the new window that opens (Figure 4), enter your Red Hat account login credentials or register and create a developer account if you haven’t already.

    Red Hat account log in page.
    Figure 4: Red Hat account log in page.


    Note: The authentication plug-in logs into the Red Hat container registry and runs subscription-manager on the podman-machine. If you are running Red Hat Enterprise Linux, this will work automatically if on a registered system.

  7. Once you log in, go back to the Red Hat build of Podman Desktop. The status for Red Hat SSO in Settings -> Authentication will update to show that you are logged in.
  8. Navigate to Settings -> Registries and verify that you have an entry for Red Hat container registry as a configured registry location (Figure 5).

Now that you’ve added the SSO extension and have access to the container registry, it’s time to create a disk image and set up a virtual machine.

Previous resource
Overview: Build and deploy a Java application using Quarkus with image mode for RHEL and the Red Hat build of Podman Desktop
Next resource
Build the Java application using Quarkus