Chapter 5. Installing Red Hat Offline Knowledge Portal
Before installing Red Hat Offline Knowledge Portal in a disconnected environment, you must temporarily connect to the Internet from a secure system to download the Red Hat Offline Knowledge Portal container image and obtain your access key. Then, you can transfer the image to your disconnected environment by using the secure methods specified by your organization.
Red Hat Offline Knowledge Portal is a separate, complimentary product available as an add-on to your Red Hat Satellite subscription. You do not need to install Red Hat Satellite to use Red Hat Offline Knowledge Portal.
To confirm whether you have an active Red Hat Satellite subscription, search for Stock Keeping Unit (SKU) MCT3718 in Red Hat Subscription Manager. If you want to buy a Red Hat Satellite subscription with the Red Hat Offline Knowledge Portal Add-On, contact the Red Hat Sales team.
Prerequisites
- An active Red Hat Satellite subscription
- Internet access for the duration of the download
- Podman
- One or more pods that meet at least the minimum pod requirements
Procedure
To get your access key, navigate to the Red Hat Offline Knowledge Portal Access Key Generator, and select the button.
ImportantYou only need one access key. After you generate your access key, the Red Hat Offline Knowledge Portal Access Key Generator retrieves the key already bound to your Red Hat account.
If your access key is compromised, report a bug to unbind your access key, so you can generate a new one.
To download Red Hat Offline Knowledge Portal from your terminal using Podman:
If needed, log in to
registry.redhat.io
using your Customer Portal, Red Hat Developer, or Registry Service Account credentials:podman login registry.redhat.io
$ podman login registry.redhat.io username: <username> Password: <password> Login Succeeded!
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Pull the image:
podman pull registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest
$ podman pull registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
To convert the image to a file that you can transfer to your offline environment, save the image to a
tar
file:podman save --format oci-archive -o rhokp.tar rhokp-rhel9:latest
podman save --format oci-archive -o rhokp.tar rhokp-rhel9:latest
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To load the image in your offline environment:
podman load -i rhokp.tar
podman load -i rhokp.tar
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To use your own SSL/TLS certificates, you must create a local
httpd-ssl/
directory to store your certificates:httpd-ssl/ ├── certs │ └── <cert_filename>.pem └── private └── <key_filename>.pem
httpd-ssl/
1 ├── certs │ └── <cert_filename>.pem
2 └── private └── <key_filename>.pem
Copy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantRed Hat Offline Knowledge Portal reverts to the default SSL/TLS key pair if it cannot detect the certificate files.
Enter the following
podman run
command with your access key:podman run --rm -p 8080:8080 -p 8443:8443 \ -v ./httpd-ssl:/opt/app-root/httpd-ssl:Z \ --env "ACCESS_KEY=<your_personal_access_key>" \ --name <red_hat_offline_knowledge_portal> \ -d registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest
$ podman run --rm -p 8080:8080 -p 8443:8443 \ -v ./httpd-ssl:/opt/app-root/httpd-ssl:Z \
1 --env "ACCESS_KEY=<your_personal_access_key>" \
2 --name <red_hat_offline_knowledge_portal> \
3 -d registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- If you’re using your own SSL/TLS certificates rather than the default, this portion of the command mounts a volume for the SSL/TLS certificates in your local httpd-ssl/ directory.
- 2
- The
podman run
command includes your access key. Without the correct access key, you cannot view encrypted content or use certain features, such as search. - 3
- The
--name
parameter is optional.
- Wait about 30 seconds for the container to start.
Validation
- In your browser, access Red Hat Offline Knowledge Portal at http://localhost:8080 or https://localhost:8443.
To examine the Podman container log, run the following command:
podman logs <container>
$ podman logs <container>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources