Commit 12179fe9 authored by MANISH KUMAR's avatar MANISH KUMAR
Browse files

Fix for PreAgrregation logs to work

parent 15df0954
Pipeline #38105 passed with stage
in 8 seconds
......@@ -137,6 +137,8 @@ azure_containerize:
variables:
SHA_IMAGE: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}
LATEST_IMAGE: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:latest
extends:
- .azure_variables
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- az --version
......@@ -152,8 +154,8 @@ azure_containerize:
RUN apk add --update \
curl
ARG AGENT_VERSION=3.0.2
# Application Insights Agent
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 \
......@@ -161,7 +163,7 @@ azure_containerize:
COPY ${JAR_FILE} app.jar
ENV APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_INSTRUMENTATION_KEY}
ENTRYPOINT ["java","-jar","/app.jar"]' > Dockerfile
ENTRYPOINT ["java","-javaagent:/opt/agents/applicationinsights-agent-${AGENT_VERSION}.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