Public Repository

Last pushed: 2 years ago
Short Description
An ActiveMQ queue.
Full Description

Communication ports are standards : use 61616 to push/consume messages from the queue, use 8161 to manage it (both ports are to be used through HTTP).

Dockerfile is as following :

# Install from latest ubuntu.
FROM ubuntu:latest

# Update sources.list
RUN rm /etc/apt/sources.list
RUN echo deb trusty main universe multiverse > /etc/apt/sources.list

# Install Java8
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
RUN echo "deb trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
RUN echo "deb-src trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
RUN apt-key adv --keyserver --recv-keys EEA14886
RUN apt-get update
RUN apt-get install oracle-java8-installer curl -y
RUN update-java-alternatives -s java-8-oracle
RUN apt-get install oracle-java8-set-default

# Install ActiveMQ 5.10.0
RUN curl | tar xz -C /opt/
RUN cp /opt/apache-activemq-5.10.0/conf/activemq.xml /opt/apache-activemq-5.10.0/conf/
RUN sed -i "s/openwire/http/" /opt/apache-activemq-5.10.0/conf/activemq.xml
RUN sed -i "s/tcp/http/" /opt/apache-activemq-5.10.0/conf/activemq.xml

EXPOSE 61612 61613 61616 8161

CMD java -Xms1G -Xmx1G -Dactivemq.classpath=/opt/apache-activemq-5.10.0/conf -Dactivemq.home=/opt/apache-activemq-5.10.0 -Dactivemq.base=/opt/apache-activemq-5.10.0 -Dactivemq.conf=/opt/apache-activemq-5.10.0/conf -jar /opt/apache-activemq-5.10.0/bin/activemq.jar start
Docker Pull Command