2018-09-05 17:41:38 +02:00
|
|
|
IMAGE activemq
|
2019-02-26 20:24:02 +01:00
|
|
|
LAYER shared/alpine3.9
|
|
|
|
LAYER shared/alpine3.9-java8
|
2018-09-05 17:41:38 +02:00
|
|
|
LAYER activemq/activemq
|
|
|
|
|
2018-09-12 16:08:10 +02:00
|
|
|
RUN EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
# Download and install ActiveMQ
|
2018-12-04 14:53:10 +01:00
|
|
|
wget http://archive.apache.org/dist/activemq/5.15.8/apache-activemq-5.15.8-bin.tar.gz -O - | tar xzf - -C /srv
|
|
|
|
mv /srv/apache-activemq-5.15.8 /srv/activemq
|
2018-09-05 17:41:38 +02:00
|
|
|
|
|
|
|
# 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
|
2018-09-12 16:08:10 +02:00
|
|
|
EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-05 21:21:07 +02:00
|
|
|
COPY lxc
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-14 18:13:11 +02:00
|
|
|
MOUNT DIR /srv/activemq/data srv/activemq/data
|
2018-09-06 09:32:20 +02:00
|
|
|
|
2018-09-07 15:47:44 +02:00
|
|
|
USER 61616 61616
|
|
|
|
CMD /srv/activemq/bin/activemq console
|