Skip to content

Commit

Permalink
variables in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeheust committed Feb 21, 2024
1 parent b73fbde commit ccfcfa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/Dockerfile-jar.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ WORKDIR /opt/apm
RUN curl https://repo.maven.apache.org/maven2/com/oracle/apm/agent/java/apm-java-agent-installer/maven-metadata.xml -o maven-metadata.xml
RUN grep -e 'latest' maven-metadata.xml > maven-metadata-latest.xml
RUN APMVERSION="$(cat maven-metadata-latest.xml | tr -d '<latest>' | tr -d '</latest>' | tr -d ' ')" && \
URL="https://repo.maven.apache.org/maven2/com/oracle/apm/agent/java/apm-java-agent-installer/${APMVERSION}/apm-java-agent-installer-${APMVERSION}.jar" && \
URL="https://repo.maven.apache.org/maven2/com/oracle/apm/agent/java/apm-java-agent-installer/$${APMVERSION}/apm-java-agent-installer-$${APMVERSION}.jar" && \
rm maven-metadata* && \
curl "${URL}" -o apm-java-agent-installer.jar
curl "$${URL}" -o apm-java-agent-installer.jar
RUN java -jar ./apm-java-agent-installer.jar provision-agent -service-name=${application_name} -destination=/opt/apm-agent -private-data-key=${private_data_key} -data-upload-endpoint=${endpoint}

WORKDIR /opt/app
Expand Down

0 comments on commit ccfcfa4

Please sign in to comment.