File tree Expand file tree Collapse file tree 3 files changed +33
-4
lines changed
deps/amqp10_client/ibm-mq Expand file tree Collapse file tree 3 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN wget -c https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messa
1313
1414WORKDIR /var/MQServer
1515
16- RUN bin/mqlicense -accept
16+ RUN bin/mqlicense -accept
1717
1818RUN echo "Checking MQ version" \
1919 && bin/dspmqver
@@ -22,9 +22,13 @@ RUN groupadd mqm
2222RUN useradd -g mqm app
2323RUN /bin/bash -c "source /var/MQServer/bin/setmqenv -s" \
2424 && bin/crtmqm QM1 \
25- && echo "Created Queue Manager ( $? )" \
26- && bin/strmqm QM1 \
27- && echo "Started Queue Manager ( $? )"
25+ && echo "Created Queue Manager ( $? )"
26+
27+ COPY start.sh /var/MQServer/start.sh
28+ RUN chmod 777 /var/MQServer/start.sh
29+ EXPOSE 1414/tcp
30+ # ENV MQ_OVERRIDE_DATA_PATH=/mnt/mqm/data MQ_OVERRIDE_INSTALLATION_NAME=Installation1 MQ_USER_NAME="mqm"
31+ ENTRYPOINT /var/MQServer/start.sh
2832
2933# RUN wget https://raw.githubusercontent.com/ibm-messaging/mq-dev-samples/master/gettingStarted/mqsc/mq-dev-config.mqsc
3034
Original file line number Diff line number Diff line change 1+ # Build docker image
2+
3+ docker build -t "ibm-mq" --build-arg ARCH=ARM64 .
4+
5+ # Run docker image
6+
7+ docker run -d ibm-mq
8+
9+ # Display queues
10+
11+ docker exec -it ibm-mq
12+
13+ display queue(* )
14+
15+
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # Note: I've written this using sh so it works in the busybox container too
3+
4+ # USE the trap if you need to also do manual cleanup after the service is stopped,
5+ # or need to start multiple services in the one container
6+
7+ # start service in background here
8+ /var/MQServer/bin/strmqm QM1
9+ /var/MQServer/bin/dspmq -m QM1
10+ tail -f /dev/null
You can’t perform that action at this time.
0 commit comments