Add information regarding Apple Silicon

This commit is contained in:
2024-05-04 00:06:04 +02:00
parent 8641701ee4
commit 8a541cafa2
2 changed files with 52 additions and 8 deletions

View File

@@ -1,6 +1,9 @@
## Creating a MQ container
IBM documentation: https://www.ibm.com/docs/en/ibm-mq/9.3?topic=containers-mq-advanced-developers-container-image
If you are using Apple Silicon (M1 or newer) you have to build the image yourself - see [apple-silicon.md](apple-silicon.md)
```bash
# Cleanup previous container
docker stop QM1
@@ -26,14 +29,14 @@ docker run \
icr.io/ibm-messaging/mq:9.3.5.1-r1
# Activate Swagger UI - edit file in the container
docker exec QM1 /bin/bash
docker exec -it QM1 /bin/bash
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo "<server>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo " <featureManager>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo " <feature>apiDiscovery-1.0</feature>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo " </featureManager>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo "</server>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo "<server>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo " <featureManager>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo " <feature>apiDiscovery-1.0</feature>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo " </featureManager>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo "</server>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
endmqweb && sleep 5 && strmqweb
exit
@@ -63,4 +66,14 @@ icr.io/ibm-messaging/mq:9.3.5.1-r1 # Use a newer version.
```
## Webconsole / Swagger UI
* https://localhost:9443/ibmmq/console/#/
* https://localhost:9443/ibm/api/explorer
* https://localhost:9443/ibm/api/explorer
## Let's play with the API
- [Display QLOCAL](display-qlocal.md)
- [Create QLOCAL](create-qlocal.md)
- [Create QREMOTE](create-qremote.md)
- [Create QALIAS](create-qalias.md)
- [Modify Queue](modify-queue.md)
- [Delete Queue](delete-queue.md)
- [Create Process](create-process.md)
- [Messages - put, get, browse, etc.](messages.md)