Creating Wrapper Image with Resources
Invoke the following command to create a directory:
$ mkdir wrapper_image_data
$ cd wrapper_image_data
Place the following files into the created directory:
- All files to be passed to the container, including database drivers.
- Dockerfile with the following 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> .
Push the created image to OpenShift or a local registry for access within the 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>
The newly created image is ready for use in the deployment.Note: The Control Center image can be pulled either directly from the entitlement registry or from a local registry.