第2章 Installing Red Hat Developer Hub in an air-gapped environment with the Operator


You can install Red Hat Developer Hub in a fully disconnected or partially disconnected environment using the Red Hat Developer Hub Operator. For a list of supported platforms, see the Red Hat Developer Hub Life Cycle page.

2.1. Installing Red Hat Developer Hub in a fully disconnected environment with the Operator

In environments without internet access — whether for security, compliance, or operational reasons — a fully disconnected installation ensures that Red Hat Developer Hub can run reliably without external dependencies.

If your network has access to the registry through a bastion host, you can use the helper script to install Red Hat Developer Hub by mirroring the Operator-related images to disk and transferring them to your air-gapped environment without any connection to the internet.

Prerequisites

  • You have installed Podman 5.3 or later. For more information, see Podman Installation Instructions.
  • You have installed Skopeo 1.17 or later.
  • You have installed yq 4.44 or later.
  • You have installed the GNU sed command line text editor.
  • You have installed umoci CLI tool.
  • You have an active oc registry, podman, or skopeo session to the registry.redhat.io Red Hat Ecosystem Catalog. For more information, see link:Red Hat Container Registry Authentication.
  • You have installed the opm CLI tool. For more information, see Installing the opm CLI.
  • Recommended on OpenShift Container Platform: You have installed the oc-mirror tool, with a version corresponding to the version of your OpenShift Container Platform cluster.
  • Make sure that your system meets the minimum sizing requirements. See Sizing requirements for Red Hat Developer Hub.

Procedure

  1. Download the mirroring script to disk by running the following command:

    curl -sSLO https://raw.githubusercontent.com/redhat-developer/rhdh-operator/refs/heads/release-1.7/.rhdh/scripts/prepare-restricted-environment.sh
  2. Run the mirroring script by using the bash command with the appropriate set of options:

    bash prepare-restricted-environment.sh
     --filter-versions "1.7"
     --to-dir <my_pulled_image_location>
     [--use-oc-mirror true]

    where:

    --to-dir <my_pulled_image_location>
    Enter the absolute path to a directory where you want to pull all of the necessary images, for example, /home/user/rhdh-operator-mirror-dir.
    --use-oc-mirror true

    (Recommended on OpenShift Container Platform) Use the oc-mirror OpenShift Container Platform CLI plugin to mirror images.

    注記

    The script can take several minutes to complete as it copies multiple images to the mirror registry.

  3. Transfer the directory specified by the --to-dir option to your disconnected environment.
  4. From a machine in your disconnected environment that has access to both the cluster and the target mirror registry, run the mirroring script by using the bash command with the appropriate set of options:

    bash <my_pulled_image_location>/install.sh
        --from-dir <my_pulled_image_location>
        [--to-registry <my.registry.example.com>]
        [--use-oc-mirror true]

    where:

    <my_pulled_image_location>/install.sh
    Enter the downloaded installation script and the absolute path to the directory where it is stored on your system.
    --from-dir <my_pulled_image_location>
    Enter the directory where you want to pull all of the necessary images.
    --to-registry
    (Optional) Enter the URL for the target mirror registry where you want to mirror the images.
    --use-oc-mirror true

    Recommended on OpenShift Container Platform: Use the oc-mirror OpenShift Container Platform CLI plugin to mirror images.

    重要

    If you used oc-mirror to mirror the images to disk, you must also use oc-mirror to mirror the images from disk due to the folder layout that oc-mirror uses.

    注記

    The script can take several minutes to complete as it automatically installs the Red Hat Developer Hub Operator.

Verification

  • If you are using Red Hat OpenShift Container Platform, the Red Hat Developer Hub Operator is in the Installed Operators list in the web console.
  • If you are using a supported Kubernetes platform, you can check the list of pods running in the rhdh-operator namespace by running the following command in your terminal:

    kubectl -n rhdh-operator get pods

Next steps

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る