Skip to content

Commit

Permalink
correct developer config (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
RamSubbarao authored and GitHub Enterprise committed Nov 15, 2024
1 parent c863a54 commit 8b3c262
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions docs/developer-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b3c262

Please sign in to comment.