Creating MDM image from docker container to deploy on OpenShift ?
To create a docker image for MDM, that can be deployed on OpenShift or Kubernetes, we create a docker container by selecting MDM Installable docker compose option. This container has WebSphere Application Server Base installed, a WAS Base Profile created and MDM extracted using Installation Manager. We execute the Configure_MDM_Interactive.sh script in the /tmp folder to configure database and deploy MDM applications on the WAS Profile.
The default user in this mdm_container is ws9admin. The ws9admin user is the owner of all the files and folders under the WAS home directory.
Volumes are used in the docker compose file mdm-installable-remotedb.yml - the file that used to bring up the Installable MDM container. When a directory within the docker container is mapped as a volume to a folder in the host machine, there is an issue noticed with the owner such folders, when the docker container is committed as an image and a new container is created from that image. The owner of such folders turns out to be the owner of the mapped folder in the host machine. With Installable MDM, this causes problems with WAS Application Server startup, as the WAS Profile Logs is mapped as a volume in the docker compose file.
To overcome the folder owner issue, remove the volume declarations under the wasmdm service and the volumes section from the mdm-installable-remotedb.yml before bringing up the container using the Configure_MDM_Docker utility or using docker-compose up command.
The default user in this mdm_container is ws9admin. The ws9admin user is the owner of all the files and folders under the WAS home directory.
Volumes are used in the docker compose file mdm-installable-remotedb.yml - the file that used to bring up the Installable MDM container. When a directory within the docker container is mapped as a volume to a folder in the host machine, there is an issue noticed with the owner such folders, when the docker container is committed as an image and a new container is created from that image. The owner of such folders turns out to be the owner of the mapped folder in the host machine. With Installable MDM, this causes problems with WAS Application Server startup, as the WAS Profile Logs is mapped as a volume in the docker compose file.
To overcome the folder owner issue, remove the volume declarations under the wasmdm service and the volumes section from the mdm-installable-remotedb.yml before bringing up the container using the Configure_MDM_Docker utility or using docker-compose up command.
Comments
Post a Comment