Migrating Ubuntu based Pattern Manager and Software Repository docker containers to Red Hat UBI containers
Starting from Advanced Content Runtime template version 2.5 and IBM Cloud Automation Manager version 3.2.0, the pattern manager and software repository containers are based on Red Hat UBI images. Any future security patches will be provided only for Red Hat UBI based images. Execute the following steps to migrate your existing 2.0-current pattern manager and software repository containers from Ubuntu based containers to Red Hat UBI based container.
Procedure
- Log into Content Runtime System.
-
Run the following command to find the image version:
docker psIf the image name is appended with 2.0-current, then it implies that you are using 2.0-current image. For example, if the image name is
camc-pattern-manager:2.0-current, then you are using 2.0-current. -
Run the following command to update your container to the latest version of Pattern Manager and Software Repository Docker Containers.
~/advanced-content-runtime/image-upgrade.sh camc-sw-repo <image-version>For example:
~/advanced-content-runtime/image-upgrade.sh camc-sw-repo 2.0-currentThis command upgrades both Pattern Manager and Software Repository Docker container.
-
To verify the upgrade, after successful execution of the previous command, run the following steps:
-
Run the following command to get the container ID of the containers:
docker ps -
Run the following docker exec command to work on Pattern Manager or Software Repository container:
docker exec -it <container-id> /bin/bash -
Run the following command to list the Red Hat version on the containers:
cat /etc/redhat-release
-