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

31
apple-silicon.md Normal file
View File

@@ -0,0 +1,31 @@
# Building MQ container for Apple Silicon (ARM64)
Build it locally
```bash
git clone https://github.com/ibm-messaging/mq-container.git
cd mq-container
make build-devserver
```
Look at the output - specifically the last line.
```bash
...
=> => naming to docker.io/library/ibm-mqadvanced-server-dev:9.3.5.1-arm64 0.0s
```
Use this image instead of the one from icr.io
~~icr.io/ibm-messaging/mq:9.3.5.1-r1~~
docker.io/library/ibm-mqadvanced-server-dev:9.3.5.1-amd64
Return to [readme.md](readme.md).
## Building a newer/older version
Edit the version number in `config.env`.
If IBM released a newer versinon, you might also pull down changes from github.
```bash
cd mq-container
git pull
```

View File

@@ -1,6 +1,9 @@
## Creating a MQ container ## Creating a MQ container
IBM documentation: https://www.ibm.com/docs/en/ibm-mq/9.3?topic=containers-mq-advanced-developers-container-image 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 ```bash
# Cleanup previous container # Cleanup previous container
docker stop QM1 docker stop QM1
@@ -26,14 +29,14 @@ docker run \
icr.io/ibm-messaging/mq:9.3.5.1-r1 icr.io/ibm-messaging/mq:9.3.5.1-r1
# Activate Swagger UI - edit file in the container # 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 "<?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 "<server>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo " <featureManager>" >> /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 " <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 " </featureManager>" >> /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
echo "</server>" >> /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 endmqweb && sleep 5 && strmqweb
exit exit
@@ -63,4 +66,14 @@ icr.io/ibm-messaging/mq:9.3.5.1-r1 # Use a newer version.
``` ```
## Webconsole / Swagger UI ## Webconsole / Swagger UI
* https://localhost:9443/ibmmq/console/#/ * 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)