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 http://archive.ubuntu.com/ubuntu 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 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --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 http://apache.crihan.fr/dist/activemq/5.10.0/apache-activemq-5.10.0-bin.tar.gz | tar xz -C /opt/
RUN cp /opt/apache-activemq-5.10.0/conf/activemq.xml /opt/apache-activemq-5.10.0/conf/activemq.xml.save
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 -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote -Djava.io.tmpdir=/opt/apache-activemq-5.10.0/tmp -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 -Dactivemq.data=/opt/apache-activemq-5.10.0/data -jar /opt/apache-activemq-5.10.0/bin/activemq.jar start
Docker Pull Command
Owner
tpepio