Skip to content

feat: updated versions #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
#
# https://support.microsoft.com/en-us/help/4026305/sql-contact-microsoft-azure-support
#
FROM mcr.microsoft.com/openjdk/jdk:11-ubuntu
FROM mcr.microsoft.com/openjdk/jdk:17-ubuntu

# Set the working directory to '/opt/spring-boot' directory
WORKDIR /opt/spring-boot

# Download the Application Insights Agent JAR
RUN apt update && \
apt install -y curl && \
curl -L -O https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.0.0-PREVIEW.3/applicationinsights-agent-3.0.0-PREVIEW.3.jar
curl -L -O https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.5.1/applicationinsights-agent-3.5.1.jar

# Expose the ports we're interested in
EXPOSE 8080

# Make Java 8 obey container resource limits, improve performance
ENV JAVA_OPTS='-Djava.awt.headless=true'

# Set the container up with an entrypoint so we can make sure any runtime
# customizations happen at the appropriate time.
COPY entrypoint.sh .
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fi

if [[ -n "$APPLICATIONINSIGHTS_CONNECTION_STRING" ]]; then
echo 'Enabling Application Insights Java agent'
export JAVA_AGENT="-javaagent:/opt/spring-boot/applicationinsights-agent-3.0.0-PREVIEW.3.jar"
export JAVA_AGENT="-javaagent:/opt/spring-boot/applicationinsights-agent-3.5.1.jar"
fi

# Give control to the CMD in the Dockerfile
Expand Down