Creating Wrapper Image with Resources

Invoke the following command to create a directory:
$ mkdir wrapper_image_data 
$ cd wrapper_image_data
Place following files to the created directory:
  • All files to be passed to container, including database drivers.
  • Dockerfile with below content:
    #Dockerfile
    FROM <control center image with tag name>
    COPY --chown=$CONTAINER_USER <all file names with space between them> /app/CC/user_inputs/ 
    RUN chmod 775 /app/CC/user_inputs/*
    
  • Invoke the following command to create wrapper image:
    $ docker build -f Dockerfile -t <wrapper image name with tag> .
    This image needs to be pushed inside OpenShift or local registry for accessing inside cluster using either docker or podman:
    • Login to registry:
      $ docker login <registry URL> -u <registry user> -p <registry user password>
      $ podman login <registry URL> -u <registry user> -p <registry user password>
      
    • Tag image with registry:
      $ docker tag <wrapper image name with tag created above> <registry url>/<image name>:<tag>
      $ podman tag <wrapper image name with tag created above> <registry url>/<image name>:<tag>
      
    • Push image to registry:
      $ docker push <registry url>/<image name>:<tag>
      $ podman push <registry url>/<image name>:<tag>
      

      Now, new image has been created, this image will be used in deployment.

    Note: Control Center images can be sourced directly from the entitlement registry or from a local registry.