Minimal Image with Apache Tomcat9, openjdk8-jre-base, jolokia and hawtio.
Jolokia is remote JMX with JSON over HTTP.
It is fast, simple, polyglot and has unique features. It's JMX on Capsaicin.
hawtio has lots of plugins such as: a git-based Dashboard and Wiki, logs, health, JMX, OSGi,
Apache ActiveMQ, Apache Camel, Apache OpenEJB, Apache Tomcat, Jetty, JBoss and Fuse Fabric
Since Version 1.4.0 needs jolokia
an activated Jsr160RequestDispatcher
.
This requires an activated authentication.
An JOLOKIA_BASIC_AUTH
environment variable can be used to add users for a Basic Authentication:
For an example:
JOLOKIA_BASIC_AUTH="jolokia:passed,spec:test"
Your can use the included Makefile.
To build the Container: make build
To remove the builded Docker Image: make clean
Starts the Container: make run
Starts the Container with Login Shell: make shell
Entering the Container: make exec
Stop (but not kill): make stop
History make history
You can find the Container also at DockerHub
- tomcat 9.0.16
- openjdk from alpine
- jolokia 1.6.0
- hawtio 2.5.0
curl \
http://localhost:8080/jolokia/ | jq
curl \
http://localhost:8080/jolokia/list | jq
curl \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
http://localhost:8080/jolokia --data @examples/memory.json | jq
curl \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
http://localhost:8080/jolokia/read/java.lang:type=Memory/HeapMemoryUsage | jq
- 8080
- 22222