File tree Expand file tree Collapse file tree 14 files changed +50
-48
lines changed
Expand file tree Collapse file tree 14 files changed +50
-48
lines changed Original file line number Diff line number Diff line change 1414 test :
1515 runs-on : ubuntu-latest
1616 steps :
17- - uses : actions/checkout@v3
17+ - uses : actions/checkout@v6
1818
1919 - name : Run tests
2020 run : |
3030 runs-on : ubuntu-latest
3131 if : github.event_name == 'push'
3232 steps :
33- - uses : actions/checkout@v3
33+ - uses : actions/checkout@v6
3434
3535 - name : Build image
3636 run : docker build . --file Dockerfile --tag $IMAGE_NAME
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
1313
1414 steps :
1515 - name : Checkout project
16- uses : actions/checkout@v3
16+ uses : actions/checkout@v6
1717
18- - name : Configure Azul Zulu OpenJDK 21
19- uses : actions/setup-java@v2
18+ - name : Configure Azul Zulu OpenJDK 25
19+ uses : actions/setup-java@v5
2020 with :
21- java-version : " 21 "
21+ java-version : " 25 "
2222 distribution : " zulu"
2323
2424 - name : Maven build
Original file line number Diff line number Diff line change @@ -22,23 +22,23 @@ jobs:
2222
2323 steps :
2424 - name : Checkout repository
25- uses : actions/checkout@v3
25+ uses : actions/checkout@v6
2626
27- - name : Configure Configure Azul Zulu OpenJDK 21
28- uses : actions/setup-java@v2
27+ - name : Configure Configure Azul Zulu OpenJDK 25
28+ uses : actions/setup-java@v5
2929 with :
30- java-version : " 21 "
30+ java-version : " 25 "
3131 distribution : " zulu"
3232
3333 - name : Initialize CodeQL
34- uses : github/codeql-action/init@v2
34+ uses : github/codeql-action/init@v4
3535 with :
3636 languages : ${{ matrix.language }}
3737
3838 - name : Autobuild
39- uses : github/codeql-action/autobuild@v2
39+ uses : github/codeql-action/autobuild@v4
4040
4141 - name : Perform CodeQL Analysis
42- uses : github/codeql-action/analyze@v2
42+ uses : github/codeql-action/analyze@v4
4343 with :
4444 category : " /language:${{matrix.language}}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1- FROM maven:3.9.4-amazoncorretto-21 AS build
1+ FROM maven:3.9.11-eclipse-temurin-25-alpine AS build
22
33COPY pom.xml .
44RUN mvn dependency:go-offline
55
66COPY src src
77RUN mvn package -DskipTests
88
9- FROM azul/zulu-openjdk:21 AS release
9+ FROM eclipse-temurin:25-jre-alpine-3.22 AS release
1010
11- ARG OTEL_AGENT_VERSION=v1.33.3
11+ ARG OTEL_AGENT_VERSION=v1.58.0
1212
1313WORKDIR /
1414
1515COPY --from=build /target/*.jar app.jar
16-
1716COPY docker-entrypoint.sh .
17+ COPY .otel/otel.jar .
1818
19- RUN useradd billionaire && \
19+ RUN addgroup -S billionaire && \
20+ adduser -S -G billionaire billionaire && \
2021 chmod +x docker-entrypoint.sh && \
21- apt-get update && \
22- apt-get install -y curl && \
23- curl -fsSL -o opentelemetry-javaagent.jar https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/${OTEL_AGENT_VERSION}/opentelemetry-javaagent.jar && \
24- apt-get purge -y --auto-remove curl && \
25- rm -rf /var/lib/apt/lists/*
22+ rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
2623
27- USER billionaire
24+ USER billionaire:billionaire
2825
2926EXPOSE 8080
3027
Original file line number Diff line number Diff line change 1- .PHONY : clean install test version up down restart upgrade_otel_agent
1+ .PHONY : clean install test version up down restart otel-agent
22
33clean :
44 @mvn clean
2525restart :
2626 @docker-compose restart
2727
28- upgrade_otel_agent :
29- @echo " Download the OTEL Java Agent..."
30- @mkdir -p agents
31- @curl -o agents/opentelemetry-javaagent.jar -L https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.33.3/opentelemetry-javaagent.jar
32- @rm -rf agents/version.txt
28+ otel-agent :
29+ @echo " Update local version for OTEL Java Agent..."
30+ @mkdir -p .otel
31+ @curl -o .otel/otel.jar -L https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
32+ @curl --progress-bar -sL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases | grep -oE ' releases/tag/v[0-9]+\.[0-9]+\.[0-9]+' | cut -d' /' -f3 | sort -V | tail -n 1 > .otel/version.txt
33+ @VERSION=$$(cat .otel/version.txt ) && echo " OTEL Java Agent local was updated to $$ VERSION"
34+ @rm -rf .otel/version.txt
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ Esta arquitetura consiste em diminuir a concorrência entre transações da API
1616</br >
1717</br >
1818
19- [ ![ node] ( https://img.shields.io/badge/Azul_Zulu_OpenJDK-21 -red.svg )] ( https://www.azul.com/downloads/?package=jdk#zulu )
20- [ ![ node] ( https://img.shields.io/badge/Spring_Boot-3.4.0 -green.svg )] ( https://spring.io/ )
19+ [ ![ node] ( https://img.shields.io/badge/Azul_Zulu_OpenJDK-25 -red.svg )] ( https://www.azul.com/downloads/?package=jdk#zulu )
20+ [ ![ node] ( https://img.shields.io/badge/Spring_Boot-3.5.10 -green.svg )] ( https://spring.io/ )
2121[ ![ node] ( https://img.shields.io/badge/MySQL-8.0.28-blue.svg )] ( https://www.mysql.com/ )
2222
2323
@@ -57,5 +57,5 @@ OTEL_SERVICE_NAME=billionaire-api
5757
5858Argumentos de VM:
5959``` shell
60- -javaagent:./agents/opentelemetry-javaagent .jar
60+ -javaagent:.otel/otel .jar
6161```
You can’t perform that action at this time.
0 commit comments