32 lines
872 B
Plaintext
32 lines
872 B
Plaintext
IMAGE activemq 5.15.9-190620
|
|
META title ActiveMQ
|
|
META desc-cs ActveMQ message broker
|
|
META desc-en ActveMQ message broker
|
|
META type service
|
|
META license GPL
|
|
|
|
LAYER alpine3.9 3.9.4-190620
|
|
LAYER alpine3.9-java8 8.212.04-190620
|
|
|
|
RUN EOF
|
|
# Download and install ActiveMQ
|
|
wget http://archive.apache.org/dist/activemq/5.15.9/apache-activemq-5.15.9-bin.tar.gz -O - | tar xzf - -C /srv
|
|
mv /srv/apache-activemq-5.15.9 /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
|
|
EOF
|
|
|
|
COPY lxc
|
|
|
|
MOUNT DIR /srv/activemq/data srv/activemq/data
|
|
|
|
USER 61616 61616
|
|
CMD /srv/activemq/bin/activemq console
|