OpenShift Operator - Mirror Docker Container Images to Private Docker Registry


Overview

The vFunction OpenShift Offline Operator Installation TGZ contains all of the vFunction Docker Container Images. After adding an Image Pull Secret to the Installation Scripts, the vFunction Docker Container Images must be added to the Private Docker Registry. Then, the vFunction OpenShift Offline Operator Installation Scripts can be run.

A number of workflows exist to add the vFunction Docker Container Images to the Private Docker Registry, including:


Push Images from Installation TGZ

NOTE: This workflow uses Docker Engine. You must have Docker installed and running on your machine for this workflow to succeed.

  1. Download the vFunction Server Offline Installation OpenShift TGZ and move it to the Linux machine with access to the Cluster where the vFunction Operator will be installed
  2. Unpack the vFunction Server Offline Installation OpenShift TGZ

    ### Replace VERSION with the actual value

    tar xvf vfunction-server-offline-installation-openshift.vVERSION.tgz
  3. Deploy or Create-and-deploy the Image Pull Secret to the vFunction OpenShift Installation Scripts
  4. Extract, load and push the vFunction Container Images to your Private Registry

    ### You may need to run this script with sudo in order for the "docker" commands to work

    vfunction-server-for-openshift/offline/load-offline-images.sh -p

Extract for Scan then Push Images from Installation TGZ

NOTE: This workflow uses Docker Engine. You must have Docker installed and running on your machine for this workflow to succeed.

  1. Download the vFunction Server Offline Installation OpenShift TGZ and move it to the Linux machine with access to the Cluster where the vFunction Operator will be installed
  2. Unpack the vFunction Server Offline Installation OpenShift TGZ

    ### Replace VERSION with the actual value

    tar xvf vfunction-server-offline-installation-openshift.vVERSION.tgz
  3. Deploy or Create-and-deploy the Image Pull Secret to the vFunction OpenShift Installation Scripts
  4. Extract the vFunction Container Images to be scanned

    vfunction-server-for-openshift/offline/load-offline-images.sh -e
  5. Verify and scan as needed
  6. Check that everything was pulled correctly

    docker images | grep vfunction
  7. Push the vFunction Container Images to your Private Registry

    ### You may need to run this script with sudo in order for the "docker" commands to work

    vfunction-server-for-openshift/offline/load-offline-images.sh -p

Mirror the RedHat Registry to your Private Registry using Docker

NOTE: This workflow uses Docker Engine. You must have Docker installed and running on your machine for this workflow to succeed.

  1. Download the vFunction Server Offline Installation OpenShift TGZ and move it to the Linux machine with access to the Cluster where the vFunction Operator will be installed
  2. Unpack the vFunction Server Offline Installation OpenShift TGZ

    ### Replace VERSION with the actual value

    tar xvf vfunction-server-offline-installation-openshift.vVERSION.tgz
  3. Deploy or Create-and-deploy the Image Pull Secret to the vFunction OpenShift Installation Scripts
  4. Mirror the vFunction Container Images from the RedHat Registry to your Private Registry

    ### You may need to run this script with sudo in order for the "docker" commands to work

    vfunction-server-for-openshift/offline/load-offline-images.sh -d

Mirror the RedHat Registry to your Private Registry using oc

  1. Download the vFunction Server Offline Installation OpenShift TGZ and move it to the Linux machine with access to the Cluster where the vFunction Operator will be installed
  2. Unpack the vFunction Server Offline Installation OpenShift TGZ

    ### Replace VERSION with the actual value

    tar xvf vfunction-server-offline-installation-openshift.vVERSION.tgz
  3. Deploy or Create-and-deploy the Image Pull Secret to the vFunction OpenShift Installation Scripts
  4. Mirror the vFunction Container Images from the RedHat Registry to your Private Registry

    ### You may need to run this script with sudo in order for the "oc image" commands to work

    vfunction-server-for-openshift/offline/load-offline-images.sh -o