2018-09-05 17:41:38 +02:00
|
|
|
IMAGE activemq
|
|
|
|
LAYER shared/alpine
|
|
|
|
LAYER shared/java
|
|
|
|
LAYER activemq/activemq
|
|
|
|
|
|
|
|
SCRIPT
|
|
|
|
# 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
|
|
|
|
RUN
|
|
|
|
|
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
|
|
|
|
|
|
|
CMD s6-svscan /etc/services.d
|