Installing Podman and exposing the default route

Install Podman on your development system to deploy and test the development images.

About this task

For more information on downloading and installing Podman, see Podman Installation Instructions.

The development environment uses the Manage Admin and ServerBundle images as a base to build new development images. Therefore, these images must be downloaded from the Red Hat® OpenShift® cluster and tagged or pushed into the local Podman registry. However, before you can download the images, the Red Hat OpenShift internal image registry must be opened up for external access. You can open it up for external access by exposing a route to the internal registry. It is possible to expose custom routes, but it is enough to expose the default Route for this purpose. For more information on exposing routes, see Exposing the registry.

Procedure

  1. From the Red Hat OpenShift command-line interface, use oc patch to patch the imageregistry spec by setting the defaultRoute to true.
    oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge
  2. Get the login token from whoami and save it somewhere. It is necessary to download the images. The login token looks like sha256~iqcyr4n41Q4Xc2tZTweRz2qvP9-_utG8kXN9RmE2qTI
    oc whoami -t

Results

The basic building blocks are now in place to start developing and creating development images.