-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
22 lines (16 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM zhiqzhao/ubuntu_weblogic1036_domain
ENV INSPECTIT_VERSION 1.9.3.107
ENV INSPECTIT_AGENT_HOME /opt/agent
# prepare the needed libs
RUN apt-get update && apt-get install -y wget unzip zip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# download agent and prepare
RUN wget https://github.com/inspectIT/inspectIT/releases/download/${INSPECTIT_VERSION}/inspectit-agent-java6-${INSPECTIT_VERSION}.zip -q \
&& unzip inspectit-agent-java6-${INSPECTIT_VERSION}.zip -d /opt \
&& rm -f inspectit-agent-java6-${INSPECTIT_VERSION}.zip
RUN sed -i "97i INSPECTIT_JAVA_OPTS=\"-javaagent:${INSPECTIT_AGENT_HOME}/inspectit-agent.jar -Dinspectit.repository=_CMR_ADDR_:_CMR_PORT_ -Dinspectit.agent.name=_AGENT_NAME_\"" /root/Oracle/Middleware/user_projects/domains/base_domain/bin/startWebLogic.sh \
&& sed -i "98i JAVA_OPTIONS=\"\${INSPECTIT_JAVA_OPTS} \${JAVA_OPTIONS}\"" /root/Oracle/Middleware/user_projects/domains/base_domain/bin/startWebLogic.sh
# copy start script
COPY run-with-inspectit.sh /run-with-inspectit.sh
CMD /run-with-inspectit.sh