Permalink
Browse files

Changes necessary to enable JMX

  • Loading branch information...
Benedetto Lo Giudice
Benedetto Lo Giudice committed Sep 21, 2016
1 parent 038e0f5 commit b757cb86c272207a182f8ea2a7c27f04241d3f7f
@@ -1,7 +1,7 @@
FROM ubuntu:16.04
MAINTAINER Gareth Rushgrove "gareth@puppet.com"

ENV PUPPET_SERVER_VERSION="2.6.0" DUMB_INIT_VERSION="1.0.2" UBUNTU_CODENAME="xenial" PUPPETSERVER_JAVA_ARGS="-Xms256m -Xmx256m" PATH=/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:$PATH
ENV PUPPET_SERVER_VERSION="2.6.0" DUMB_INIT_VERSION="1.0.2" UBUNTU_CODENAME="xenial" PUPPETSERVER_JAVA_ARGS="-Djava.rmi.server.hostname=container -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.rmi.port=1099 -Xms256m -Xmx256m" PATH=/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:$PATH

LABEL org.label-schema.vendor="Puppet" \
org.label-schema.url="https://github.com/puppetlabs/puppet-in-docker" \
@@ -6,4 +6,8 @@ if test -n "${PUPPETDB_SERVER_URLS}" ; then
sed -i "s@^server_urls.*@server_urls = ${PUPPETDB_SERVER_URLS}@" /etc/puppetlabs/puppet/puppetdb.conf
fi

echo "******************************************"
echo "about to execute the puppet server with $@"
echo "******************************************"

exec /opt/puppetlabs/bin/puppetserver "$@"
@@ -20,3 +20,7 @@ SERVICE_STOP_RETRIES=60
# seconds. This is used in System-V style init scripts only, and will have no
# effect in systemd.
# START_TIMEOUT=120

echo "******************************"
echo "using JAVA_ARGS: $JAVA_ARGS"
echo "******************************"

0 comments on commit b757cb8

Please sign in to comment.