Skip to content

bodsch/docker-jolokia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-jolokia

Minimal Image with Apache Tomcat9, openjdk8-jre-base, jolokia and hawtio.

jolokia

Jolokia is remote JMX with JSON over HTTP.

It is fast, simple, polyglot and has unique features. It's JMX on Capsaicin.

hawtio

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"

Status

Docker Pulls Image Size Build Status

Build

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

Docker Hub

You can find the Container also at DockerHub

Versions

  • tomcat 9.0.16
  • openjdk from alpine
  • jolokia 1.6.0
  • hawtio 2.5.0

Tests

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

Ports

  • 8080
  • 22222