-
Notifications
You must be signed in to change notification settings - Fork 11
/
Docker on MQ
42 lines (16 loc) · 1.43 KB
/
Docker on MQ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
service docker start
docker pull icr.io/ibm-messaging/mq:latest
docker images
docker volume create qm1data
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_PASSWORD=passw0rd --env MQ_ADMIN_PASSWORD=passw0rd --name QM1 icr.io/ibm-messaging/mq:latest
docker ps
docker exec -ti QM1 bash
=======DONT USE THIS======= FUTURE Notes
/opt/bin/mq_prometheus -f /mnt/mqm/data/mq_prometheus.yaml -ibmmq.queueManager=QM1 -ibmmq.httpListenPort=9157 -ibmmq.client=true -ibmmq.monitoredQueues="DEV.*" -ibmmq.monitoredChannels="TO.*" -ibmmq.resetQStats=true -log.level=debug -ibmmq.userid=admin -ibmmq.password=passw0rd -ibmmq.httpListenHost=172.17.0.3 -ibmmq.ccdtUrl
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_PASSWORD=passw0rd --env MQ_ADMIN_PASSWORD=passw0rd --name QM1 icr.io/ibm-messaging/mq:latest
DEFINE CHANNEL(FILEURL) CHLTYPE(CLNTCONN) TRPTYPE(TCP) USERID('admin') password('passw0rd') CONNAME('172.17.0.2(1414)')
SET CHLAUTH ('CLNTCHL') TYPE(ADDRESSMAP) ADDRESS(172.17.0.1) MCAUSER('admin')
SET AUTHREC OBJTYPE(QMGR) PRINCIPAL('admin') AUTHADD(CONNECT,INQ)
SET AUTHREC PROFILE('DEV.QUEUE.1') OBJTYPE(QUEUE) PRINCIPAL('admin') AUTHADD(PUT,GET,INQ,BROWSE)
REFRESH SECURITY
DEFINE CHANNEL(FILEURL) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER('admin')