Skip to content

Commit

Permalink
Bump dd-trace-java to 1.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd authored Jun 18, 2024
1 parent 2d020bb commit 855dff7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ WORKDIR /app
COPY --from=builder /home/gradle/src/build/libs/*.jar /app/spring-boot-application.jar

# Install Datadog agent
RUN wget -O dd-java-agent.jar https://github.com/DataDog/dd-trace-java/releases/download/v1.33.0/dd-java-agent.jar && \
echo "4b418fff108b3464c5f09a138d9987e0972636d8f3bcedbae087a05a3794fde6 dd-java-agent.jar" > SHA256SUMS && \
RUN wget -O dd-java-agent.jar https://github.com/DataDog/dd-trace-java/releases/download/v1.35.0/dd-java-agent.jar && \
echo "14f6c325679c7f11db6bc3dc7baba98abd005c1865bd9c61a2a8d560f1a65b26 dd-java-agent.jar" > SHA256SUMS && \
sha256sum -c SHA256SUMS

# Utility
RUN apk add curl wget
RUN mkdir -p /tmp/files && echo "hello" > /tmp/files/hello.txt && echo "world" > /tmp/files/foo.txt

#CMD ["sh", "-c", "export INSTANCE_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4); export DD_TRACE_AGENT_URL=http://$INSTANCE_IP:8126; java -javaagent:/app/dd-java-agent.jar -jar /app/spring-boot-application.jar"]
CMD ["java", "-javaagent:/app/dd-java-agent.jar", "-jar", "/app/spring-boot-application.jar"]

0 comments on commit 855dff7

Please sign in to comment.