ibm-messaging / mq-container

Container images for IBM® MQ
Apache License 2.0
247 stars 186 forks source link

Queries #536

Open Murali-Cloudbridge opened 11 months ago

Murali-Cloudbridge commented 11 months ago

How to install any packages that we might need on the container itself. For instance, we might want to install git or jq command line tool to run some configuration scripts. Do we have access to the root user on the container itself to do this?

The current solution uses IBM MQ Advanced for the Developer's container image. How do we change it to use the IBM MQ Advanced production image? Does this require a complete cluster rebuild, or can the image be switched without the rebuild?

arthurbarr commented 11 months ago

You can add packages to the list of extra packages which get installed (this script is called as part of the Dockerfile): https://github.com/ibm-messaging/mq-container/blob/2713a4bfea8f4557d3ef18e1c136abb03fff48f5/install-mq-server-prereqs.sh#L50

For a production image, you need to build your own image, which could be based on this sample if you wish. MQ Advanced and MQ Advanced for Developers have different installation media, so you can't switch between them with configuration. If you are using the MQ Operator on Red Hat OpenShift Container Platform, then pre-built images are available for each.