2018-03-30 21:58:04 +02:00
|
|
|
FROM java
|
2018-01-23 13:39:50 +01:00
|
|
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
# Download and install ActiveMQ
|
|
|
|
wget http://archive.apache.org/dist/activemq/5.15.2/apache-activemq-5.15.2-bin.tar.gz -O /tmp/activemq.tgz \
|
|
|
|
&& tar xf /tmp/activemq.tgz -C /srv \
|
|
|
|
&& mv /srv/apache-activemq-5.15.2 /srv/activemq \
|
|
|
|
&& rm -f /tmp/activemq.tgz \
|
|
|
|
# Create OS user
|
|
|
|
&& addgroup -S -g 61616 activemq \
|
|
|
|
&& adduser -S -u 61616 -h /srv/activemq -s /bin/false -g activemq -G activemq activemq \
|
|
|
|
&& mkdir /srv/activemq/tmp \
|
|
|
|
&& chown activemq:activemq /srv/activemq/tmp \
|
|
|
|
# Configure Java heap size
|
|
|
|
&& sed -i "s/-Xms64M -Xmx1G/-Xms32M -Xmx256M/" /srv/activemq/bin/env \
|
|
|
|
# Make start/stop script visible globally
|
|
|
|
&& ln -s /srv/activemq/bin/activemq /usr/local/bin/activemq
|
|
|
|
|
2018-01-23 18:18:02 +01:00
|
|
|
COPY docker/ /
|
|
|
|
|
2018-01-23 13:39:50 +01:00
|
|
|
VOLUME ["/srv/activemq/data"]
|
|
|
|
EXPOSE 61616
|
|
|
|
|
|
|
|
USER activemq
|
|
|
|
CMD ["activemq", "console"]
|