Commit c0fe37f3 authored by MANISH KUMAR's avatar MANISH KUMAR
Browse files

Merge branch 'openjdk_revert' into 'master'

Reverting to open jdk

See merge request !231
parents b8bea03d cbd2487a
Pipeline #38123 passed with stages
in 1 minute and 5 seconds
......@@ -146,13 +146,24 @@ azure_containerize:
script:
# Dockerfile
- |
echo 'FROM community.opengroup.org:5555/osdu/platform/deployment-and-operations/base-containers-azure/alpine-zulu8:0.0.1
echo 'FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
ARG APPLICATIONINSIGHTS_INSTRUMENTATION_KEY
RUN apk add --update \
curl
# 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 \
&& chmod 444 /opt/agents/applicationinsights-agent-${AGENT_VERSION}.jar
COPY ${JAR_FILE} app.jar
ENV APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_INSTRUMENTATION_KEY}
ENTRYPOINT ["java","-javaagent:/opt/agents/applicationinsights-agent-${AGENT_VERSION}.jar","/home/osdu/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