Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (18 sloc) 887 Bytes
FROM debian AS builder
MAINTAINER mark.prichard@appdynamics.com
ARG APPD_AGENT_VERSION
ARG APPD_AGENT_SHA256
RUN apt-get update && apt-get install -y --no-install-recommends unzip \
&& rm -rf /var/lib/apt/lists/*
COPY AppServerAgent-${APPD_AGENT_VERSION}.zip /
RUN echo "${APPD_AGENT_SHA256} *AppServerAgent-${APPD_AGENT_VERSION}.zip" >> appd_checksum \
&& sha256sum -c appd_checksum \
&& rm appd_checksum \
&& unzip -oq AppServerAgent-${APPD_AGENT_VERSION}.zip -d /tmp
FROM jetty:9-jre8
USER root
RUN apt-get update && apt-get -y upgrade
USER jetty
COPY --from=builder /tmp /opt/appdynamics
ENV JAVA_AGENT -javaagent:/opt/appdynamics/javaagent.jar
CMD ["sh", "-c", "java $JAVA_AGENT ${APPDYNAMICS_NODE_PREFIX:+-Dappdynamics.agent.reuse.nodeName=true -Dappdynamics.agent.reuse.nodeName.prefix=${APPDYNAMICS_NODE_PREFIX}} -jar /usr/local/jetty/start.jar"]
You can’t perform that action at this time.