From 877d1a5d746ca085c9dce1ba78af5eaeaa6ffac1 Mon Sep 17 00:00:00 2001 From: freekode Date: Tue, 24 Nov 2020 21:20:48 +0100 Subject: [PATCH] version-5.16.0 --- 5.16.0/Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 5.16.0/Dockerfile diff --git a/5.16.0/Dockerfile b/5.16.0/Dockerfile new file mode 100644 index 0000000..0bd7a25 --- /dev/null +++ b/5.16.0/Dockerfile @@ -0,0 +1,31 @@ +FROM openjdk:11 + +ENV ACTIVEMQ_VERSION 5.16.0 +ENV ACTIVEMQ apache-activemq-$ACTIVEMQ_VERSION +ENV ACTIVEMQ_TCP=61616 ACTIVEMQ_AMQP=5672 ACTIVEMQ_STOMP=61613 ACTIVEMQ_MQTT=1883 ACTIVEMQ_WS=61614 ACTIVEMQ_UI=8161 +ENV SHA512_VAL=999928176e57b0805e8a53834e7f4eb648baf271a0c60de31ebd95fa63f2b089aa41c2ef7353790835e2e8cc39c4b778f535b38e6dc0c67a79c3c1da335c4a0a + +ENV ACTIVEMQ_HOME /opt/activemq + + +RUN curl "https://archive.apache.org/dist/activemq/$ACTIVEMQ_VERSION/$ACTIVEMQ-bin.tar.gz" -o $ACTIVEMQ-bin.tar.gz + +# Validate checksum +RUN if [ "$SHA512_VAL" != "$(sha512sum $ACTIVEMQ-bin.tar.gz | awk '{print($1)}')" ];\ + then \ + echo "sha512 values doesn't match! exiting." && \ + exit 1; \ + fi; + +RUN tar xzf $ACTIVEMQ-bin.tar.gz -C /opt && \ + ln -s /opt/$ACTIVEMQ $ACTIVEMQ_HOME && \ + useradd -r -M -d $ACTIVEMQ_HOME activemq && \ + chown -R activemq:activemq /opt/$ACTIVEMQ && \ + chown -h activemq:activemq $ACTIVEMQ_HOME + +USER activemq + +WORKDIR $ACTIVEMQ_HOME +EXPOSE $ACTIVEMQ_TCP $ACTIVEMQ_AMQP $ACTIVEMQ_STOMP $ACTIVEMQ_MQTT $ACTIVEMQ_WS $ACTIVEMQ_UI + +CMD ["/bin/sh", "-c", "bin/activemq console"]