Spotter-VM/activemq/lxcfile

27 lines
721 B
Plaintext
Raw Normal View History

2018-09-05 17:41:38 +02:00
IMAGE activemq
LAYER shared/alpine
LAYER shared/java
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-09-06 21:15:43 +02:00
wget http://archive.apache.org/dist/activemq/5.15.5/apache-activemq-5.15.5-bin.tar.gz -O - | tar xzf - -C /srv
2018-09-05 17:41:38 +02:00
mv /srv/apache-activemq-5.15.5 /srv/activemq
# 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
MOUNT /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