From 8b3c26260754c7dc4eca5d55142686b1699fc1fc Mon Sep 17 00:00:00 2001 From: Ram Subbarao Chalamalasetti Date: Fri, 15 Nov 2024 15:39:57 +0530 Subject: [PATCH] correct developer config (#748) --- docs/developer-config.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/docs/developer-config.md b/docs/developer-config.md index 7bd1e8c0..e86a4fa2 100644 --- a/docs/developer-config.md +++ b/docs/developer-config.md @@ -18,14 +18,25 @@ Secrets must be used to set the passwords for `admin` and `app` user. For settin ### Example usage with podman: -`printf "passw0rd" | podman secret create mqAppPassword` - Creates a podman secret with secretname as “mqAppPassword” -`podman run --secret mqAppPassword,type=mount,mode=0777 --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --publish 1414:1414 --publish 9443:9443 --detach --name QM1 icr.io/ibm-messaging/mq:latest` +Create podman secrets with secret names as “mqAdminPassword” & "mqAppPassword": + +- `printf "passw0rd" | podman secret create mqAdminPassword -` +- `printf "passw0rd" | podman secret create mqAppPassword -` + +Run container referencing mounted secrets: +- `podman run --secret mqAdminPassword --secret mqAppPassword --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --publish 1414:1414 --publish 9443:9443 --detach --name QM1 icr.io/ibm-messaging/mq:latest` ### Example usage with docker: -Docker secrets are only available via Docker Swarm services, hence to create a secret using docker, Docker Swarm must be used. -`printf "passw0rd" | docker secret create mqAppPassword–` - Creates a secret -`docker service create --secret mqAppPassword --env LICENSE=accept --env MQ_QMGR_NAME=QM8 --publish 1414:1414 --publish 9443:9443 --detach --name QM8 icr.io/ibm-messaging/mq` +Secrets in docker are available using Docker Swarm services or Docker Compose. The following example creates a secret using Docker Swarm. + +Create docker secrets with secret names as “mqAdminPassword” & "mqAppPassword": + +- `printf "passw0rd" | docker secret create mqAdminPassword –` +- `printf "passw0rd" | docker secret create mqAppPassword –` + +Run container referencing mounted secret: +- `docker service create --secret mqAdminPassword --secret mqAppPassword --env LICENSE=accept --env MQ_QMGR_NAME=QM8 --publish 1414:1414 --publish 9443:9443 --detach --name QM8 icr.io/ibm-messaging/mq` ## Details of the default configuration