Public | Automated Build

Last pushed: 4 months ago
Dockerfile
FROM jboss/base-jdk:8 USER root RUN mkdir -p /deployments # JAVA_APP_DIR is used by run-java.sh for finding the binaries ENV JAVA_APP_DIR=/deployments \ JAVA_MAJOR_VERSION=8 # Agent bond including Jolokia and jmx_exporter ADD agent-bond-opts /opt/run-java-options RUN mkdir -p /opt/agent-bond \ && curl http://central.maven.org/maven2/io/fabric8/agent-bond-agent/1.2.0/agent-bond-agent-1.2.0.jar \ -o /opt/agent-bond/agent-bond.jar \ && chmod 444 /opt/agent-bond/agent-bond.jar \ && chmod 755 /opt/run-java-options ADD jmx_exporter_config.yml /opt/agent-bond/ EXPOSE 8778 9779 # Add run script as /deployments/run-java.sh and make it executable COPY run-java.sh /deployments/ RUN chmod 755 /deployments/run-java.sh # Run under user "jboss" and prepare for be running # under OpenShift, too RUN chown -R jboss /deployments \ && usermod -g root -G `id -g jboss` jboss \ && chmod -R "g+rwX" /deployments \ && chown -R jboss:root /deployments USER jboss CMD [ "/deployments/run-java.sh" ]
Source Repository