Migrate ActiveMQ to S6 supervisor

This commit is contained in:
Disassembler 2018-04-30 23:18:04 +02:00
parent 23e9de7630
commit 551e9801b2
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
3 changed files with 10 additions and 5 deletions

View File

@ -13,14 +13,11 @@ RUN \
&& 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
&& sed -i "s/-Xms64M -Xmx1G/-Xms32M -Xmx256M/" /srv/activemq/bin/env
COPY docker/ /
VOLUME ["/srv/activemq/data"]
EXPOSE 61616
USER activemq
CMD ["activemq", "console"]
CMD ["s6-svscan", "/etc/services.d"]

View File

@ -0,0 +1,3 @@
#!/bin/sh
/bin/true

View File

@ -0,0 +1,5 @@
#!/bin/execlineb -P
fdmove -c 2 1
s6-setuidgid 61616:61616
/srv/activemq/bin/activemq console