Commit 9260ae24 authored by MANISH KUMAR's avatar MANISH KUMAR
Browse files

Removing Agent version from entrypoint

parent ee740fc0
Pipeline #38143 passed with stage
in 8 seconds
......@@ -158,12 +158,12 @@ azure_containerize:
ARG AGENT_VERSION=3.0.2
RUN mkdir -p /opt/agents \
&& chmod g+rwx /opt/agents \
&& curl -i -k -L https://github.com/microsoft/ApplicationInsights-Java/releases/download/${AGENT_VERSION}/applicationinsights-agent-${AGENT_VERSION}.jar -o /opt/agents/applicationinsights-agent-${AGENT_VERSION}.jar \
&& chmod 444 /opt/agents/applicationinsights-agent-${AGENT_VERSION}.jar
&& curl -i -k -L https://github.com/microsoft/ApplicationInsights-Java/releases/download/${AGENT_VERSION}/applicationinsights-agent-${AGENT_VERSION}.jar -o /opt/agents/applicationinsights-agent.jar \
&& chmod 444 /opt/agents/applicationinsights-agent.jar
COPY ${JAR_FILE} app.jar
ENV APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_INSTRUMENTATION_KEY}
ENTRYPOINT ["java","-javaagent:/opt/agents/applicationinsights-agent-${AGENT_VERSION}.jar","-jar","/app.jar"]' > Dockerfile
ENTRYPOINT ["java","-javaagent:/opt/agents/applicationinsights-agent.jar","-jar","/app.jar"]' > Dockerfile
- |
if [ "$AZURE_SERVICE" == "entitlements" ]; then
TARGET=$(find ./$AZURE_BUILD_SUBDIR/target -name '*.jar' |head -n 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment