content_image/979841.jpg
However, in production environments due to client security policies, direct access to internet is disabled resulting in empty catalog on the IBM Cloud Private admin GUI. The below steps are documented in getting the desired chart to be available on IBM Cloud Private. IBM Liberty chart is taken as an example in the below steps. 

## 2.7.1 Prerequisites 

The following are the prerequisites for setting up IBM Cloud Private catalog in an airgap environment: 

## 2.7.2 Steps to follow 

GLYPH<SM590000> Ensure you have git configured on the local system. 

GLYPH<SM590000> Ensure Docker is installed on the local system, and has internet access. 

GLYPH<SM590000> Install and configure Helm on the local system. 

GLYPH<SM590000> Install IBM Cloud Private command line interface (CLI). 

Perform the following steps: 

1. Obtain the Helm chart for the image. Clone the /IBM/Charts repository from git using: git clone https://github.com/IBM/charts.git . 

2. Open the values.yaml file from the chart and locate the image that it uses. In this example, the repository is “websphere-liberty”, an d tag is “latest” as shown in Figure 2-19. 

<img src='content_image/979841.jpg'>

3. Pull the image locally using the repository and tag information from the values.yaml file: docker pull <repository>:<tag>. In this example, it would be: 

docker pull websphere-liberty:latest 

4. Upload the image to the private image repository on IBM Cloud Private: 

docker login <cluster_CA_domain>:8500 

Tag the image: docker tag image_name. 

<cluster_CA_domain:8500>/namespace/imagename:tagname . In our example: 

docker tag websphere-liberty:latest 

mycluster.icp:8500/default/websphere-liberty:latest . 

5. Push the image to private repository: 

docker push mycluster.icp:8500/default/websphere-liberty:latest 

6. Open the values.yaml file again, and update the location of the Docker image, as shown in Figure 2-20 on page 67: 

repository: <cluster_CA_domain>:8500/namespace/imagename tag: <tagname> 

