java21-artemis-mq
Java 21 and Artemis Mq simple and plain message broker
349
An Alpine based image that relies on Java 21 and Artemis Mq to provide a simple and plain message broker
Once the image is pulled from the Docker Hub, it's possible to launch it with Dockerfile or with Docker Compose by the setup of the entrypoint.
This command defines the message broker implementation
"/home/artemio/apache-artemis-2.53.0/bin/artemis" create /home/artemio/broker --name brokerArtemio --user admin --password <admin Password> --role admins --silent --require-login --http-host 0.0.0.0 --no-autocreate --verbose;
--no-autocreate doesn't allow to create new queue/topic forcing to use the ones defined in the broker.xml files of the broker implementation.
This command
mv /home/artemio/supporto/broker.xml /home/artemio/broker/etc ;
overrides the broker.xml files of the broker implementation following the abstract setup I created this image for
-coda01 anycast queue creation
-topicArtemio multicast topic creation
-allowing guests type user to read/write queue (anycast) and topic (multicast)
To define custom queues or topics refers to this options of the broker instance creation (section above)
--queues <queue name> --addresses <topic name>
This command will define a new guests type user then starting artemis
"/home/artemio/broker/bin/artemis-service" start; "/home/artemio/broker/bin/artemis" user add --user-command-user <guests user name> --user-command-password <guests user password> --role guests --user admin --password <admin Password>; "/home/artemio/broker/bin/artemis-service" stop; /home/artemio/broker/bin/artemis" run;
I chose artemio as linux user name also to pay homage to the main character of "Il Ragazzo di Campagna" italian milestone movie called Artemio
https://it.wikipedia.org/wiki/Il_ragazzo_di_campagna
Content type
Image
Digest
sha256:4d4238608…
Size
111.5 MB
Last updated
about 2 months ago
docker pull rovigattibetacom/java21-artemis-mq