Migrate ActiveMQ to S6 supervisor
This commit is contained in:
parent
23e9de7630
commit
551e9801b2
@ -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"]
|
||||
|
3
activemq/docker/etc/services.d/.s6-svscan/finish
Executable file
3
activemq/docker/etc/services.d/.s6-svscan/finish
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/bin/true
|
5
activemq/docker/etc/services.d/activemq/run
Executable file
5
activemq/docker/etc/services.d/activemq/run
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/execlineb -P
|
||||
|
||||
fdmove -c 2 1
|
||||
s6-setuidgid 61616:61616
|
||||
/srv/activemq/bin/activemq console
|
Loading…
Reference in New Issue
Block a user