Dockerfiles for various versions of ActiveMQ
Switch branches/tags
Clone or download
rmohr Merge pull request #33 from benhubert/master
Improved documentation about persistent storage
Latest commit bf6ee60 Sep 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
5.10.0 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.10.1 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.10.2 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.11.0 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.11.1 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.12.0 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.12.1 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.12.2 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.13.0 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.13.1 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.13.2 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.13.3 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.13.4 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.14.0-alpine Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.14.0 Change from java to openjdk image, as the former is deprecated Nov 16, 2016
5.14.1-alpine Add support for ActiveMQ 5.14.1 (regular and alpine) Nov 23, 2016
5.14.1 Add support for ActiveMQ 5.14.1 (regular and alpine) Nov 23, 2016
5.14.2-alpine add 5.14.2 and 5.14.3 versions Jan 10, 2017
5.14.2 add 5.14.2 and 5.14.3 versions Jan 10, 2017
5.14.3-alpine add 5.14.2 and 5.14.3 versions Jan 10, 2017
5.14.3 add 5.14.2 and 5.14.3 versions Jan 10, 2017
5.14.4-alpine Add ActiveMQ 5.14.4 and 5.14.5 Aug 30, 2017
5.14.4 Add ActiveMQ 5.14.4 and 5.14.5 Aug 30, 2017
5.14.5-alpine Add version 5.15.3 and sha512 validation Mar 20, 2018
5.14.5 Add ActiveMQ 5.14.4 and 5.14.5 Aug 30, 2017
5.15.2-alpine Add version 5.15.3 and sha512 validation Mar 20, 2018
5.15.2 Add version 5.15.3 and sha512 validation Mar 20, 2018
5.15.3-alpine Add version 5.15.3 and sha512 validation Mar 20, 2018
5.15.3 Add version 5.15.3 and sha512 validation Mar 20, 2018
5.15.4-alpine Add 5.15.4 version May 23, 2018
5.15.4 Add 5.15.4 version May 23, 2018
5.15.5-alpine Add 5.15.5 release. Sep 24, 2018
5.15.5 Add 5.15.5 release. Sep 24, 2018
5.15.6-alpine Add 5.15.6 release. Sep 24, 2018
5.15.6 Add 5.15.6 release. Sep 24, 2018
.travis.yml Add 5.15.5 release. Sep 24, 2018
LICENSE Change LICENSE from MIT to Apache Aug 10, 2016
README.md Merge pull request #33 from benhubert/master Sep 24, 2018
docker-compose.yml Create travis build matrix for tests May 18, 2016

README.md

docker-activemq

Build Status Docker Pulls

Docker file for trusted builds of ActiveMQ on https://registry.hub.docker.com/u/rmohr/activemq/.

Run the latest container with:

docker pull rmohr/activemq
docker run -p 61616:61616 -p 8161:8161 rmohr/activemq

The JMX broker listens on port 61616 and the Web Console on port 8161.

Image Tags

rmohr/activemq:latest (rmohr/activemq:5.15.4)
rmohr/activemq:5.10.0
rmohr/activemq:5.10.1
rmohr/activemq:5.10.2
rmohr/activemq:5.11.0
rmohr/activemq:5.11.1
rmohr/activemq:5.12.0
rmohr/activemq:5.12.1
rmohr/activemq:5.12.2
rmohr/activemq:5.13.0
rmohr/activemq:5.13.1
rmohr/activemq:5.13.2
rmohr/activemq:5.13.3
rmohr/activemq:5.13.4
rmohr/activemq:5.14.0
rmohr/activemq:5.14.0-alpine
rmohr/activemq:5.14.1
rmohr/activemq:5.14.1-alpine
rmohr/activemq:5.14.2
rmohr/activemq:5.14.2-alpine
rmohr/activemq:5.14.3
rmohr/activemq:5.14.3-alpine
rmohr/activemq:5.14.4
rmohr/activemq:5.14.4-alpine
rmohr/activemq:5.14.5
rmohr/activemq:5.14.5-alpine
rmohr/activemq:5.15.2
rmohr/activemq:5.15.2-alpine
rmohr/activemq:5.15.3
rmohr/activemq:5.15.3-alpine
rmohr/activemq:5.15.4
rmohr/activemq:5.15.4-alpine
rmohr/activemq:5.15.5
rmohr/activemq:5.15.5-alpine
rmohr/activemq:5.15.6
rmohr/activemq:5.15.6-alpine

Port Map

61616 JMS
8161  UI
5672  AMQP  (since `rmohr/activemq:5.12.1`)
61613 STOMP (since `rmohr/activemq:5.12.1`)
1883  MQTT  (since `rmohr/activemq:5.12.1`)
61614 WS    (since `rmohr/activemq:5.12.1`)

Customizing configuration and persistence location

By default data and configuration is stored inside the container and will be lost after the container has been shut down and removed. To persist these files you can mount these directories to directories on your host system:

docker run -p 61616:61616 -p 8161:8161 \
           -v /your/persistent/dir/conf:/opt/activemq/conf \
           -v /your/persistent/dir/data:/opt/activemq/data \
           rmohr/activemq

ActiveMQ expects that some configuration files already exists, so they won't be created automatically, instead you have to create them on your own before starting the container. If you want to start with the default configuration you can initialize your directories using some intermediate container:

docker run --user root --rm -ti \
  -v /your/persistent/dir/conf:/mnt/conf \
  -v /your/persistent/dir/data:/mnt/data \
  rmohr/activemq:5.15.4-alpine /bin/sh

This will bring up a shell, so you can just execute the following commands inside this intermediate container to copy the default configuration to your host directory:

chown activemq:activemq /mnt/conf
chown activemq:activemq /mnt/data
cp -a /opt/activemq/conf/* /mnt/conf/
cp -a /opt/activemq/data/* /mnt/data/
exit

The last command will stop and remove the intermediate container. Your directories are now initialized and you can run ActiveMQ as described above.