Sign inSign up

alectolytic/activemq

By alectolytic

Updated almost 11 years ago

Image
0

7.1K

alectolytic/activemq repository overview

Dockerfile: Apache ActiveMQ on Fedora

A fedora based Apache ActiveMQ container.

docker pull alectolytic/activemq

Build and Run

Build
docker build --tag fedora/activemq .
Run
HOST_DATA_DIR=/path/to/data
HOST_CONFIGS=/path/to/config/overlay

# note that the default credentials on jetty are disabled by default
# this file re-enables them
cat > ${HOST_CONFIGS}/jetty-realm.properties << EOF
admin: admin, admin
user: user, user
EOF

docker run \
    -p 8161:8161 \
    -v ${HOST_DATA_DIR}:/opt/apache-activemq/data \
    -v ${HOST_CONFIGS}:/var/run/activemq/conf \
    fedora/activemq

Hooks and Configuration overlay

By default, no user configuration is loaded and no hooks are executed before starting ActiveMQ.

Hooks

The hooks are run every-time the server starts and they are available. These can be added at run time by using -v ${HOOKS_DIR}:/var/run/activemq/hooks option. This makes the hooks available to the instance. Only executable files whose name matches *.sh is executed.

Configuration

This container providers for specific configuration files to be replaced before the ActiveMQ server starts. Any configuration file that is intended to be replaced can be added to a local directory on the host and injected by passing -v ${CONF_DIR}:/var/run/activemq/conf to the run command. See the Run section for an example use case.

Note: This will supersedes any configurations mounted via the ${ACTIVEMQ_HOME}/conf.

Environment Variables

For a full list refer to the dockerfile.

ENV ACTIVEMQ_VERSION=5.11.1
ENV ACTIVEMQ_SOURCE=${ACTIVEMQ_MIRROR}/${ACTIVEMQ_URL_PATH}
ENV ACTIVEMQ_HOME=/opt/apache-activemq/
ENV ACTIVEMQ_CONF=${ACTIVEMQ_HOME}/conf
ENV ACTIVEMQ_DATA=${ACTIVEMQ_HOME}/data
ENV ACTIVEMQ_USER=activemq
ENV ACTIVEMQ_RUN=/var/run/activemq
ENV ACTIVEMQ_OPTS=""

Volumes

The following volumes can be mounted from the host.

VolumeDescription
/opt/apache-activemq/confActiveMQ configuration files.
/opt/apache-activemq/dataActiveMQ data directory.
/var/run/activemq/confRuntime configuration overlay. See configuration section.
/var/run/activemq/hooksRuntime hooks. See hooks section.

Ports

PortDescription
8161AMQ HTTP port
8162AMQ HTTPS port
61616AMQ Openwire port
1883AMQ MQTT port
5672AMQ AMQP port
61613AMQ STOMP port
61617AMQ Openwire over SSL port
8883AMQ MQTT over SSL port
5671AMQ AMQP over SSL port
61614AMQ STOMP over SSL port

Tag summary

Content type

Image

Digest

sha256:fedfb3746

Size

338.1 MB

Last updated

almost 11 years ago

docker pull alectolytic/activemq