diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index daea541..689bcf7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: cache: maven - name: Run Tests - run: mvn -B -ntp -Psonar-coverage verify + run: mvn -B -ntp verify verify-native: strategy: diff --git a/README.md b/README.md index a86bc5a..a87f0cc 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Find the latest docker image [here](https://github.com/idealo/spring-endpoint-ex ```yaml services: spring-endpoint-exporter: - image: ghcr.io/idealo/spring-endpoint-exporter:1.0.10 + image: ghcr.io/idealo/spring-endpoint-exporter:1.0.11 mem_reservation: 256M mem_limit: 512M volumes: @@ -57,13 +57,13 @@ You can pass properties to the application using environment variables or comman ``` export EXPORTER_INPUT_PATH=/data/app.jar -java -jar ./spring-endpoint-exporter-1.0.10.jar +java -jar ./spring-endpoint-exporter-1.0.11.jar ``` or ``` -java -jar ./spring-endpoint-exporter-1.0.10.jar --exporter.input-path="/data/app.jar" --exporter.include-filters="de.idealo.*" +java -jar ./spring-endpoint-exporter-1.0.11.jar --exporter.input-path="/data/app.jar" --exporter.include-filters="de.idealo.*" ``` ## Building from source @@ -79,7 +79,7 @@ Simply run the following command: You can now run the application using: ``` -java -jar ./target/spring-endpoint-exporter-1.0.10.jar +java -jar ./target/spring-endpoint-exporter-1.0.11.jar ``` ### Docker Image @@ -90,17 +90,21 @@ Make sure your docker daemon is running and run the following command: ./mvnw clean spring-boot:build-image ``` -The resulting image is named `ghcr.io/idealo/spring-endpoint-exporter:1.0.10`. +The resulting image is named `ghcr.io/idealo/spring-endpoint-exporter:1.0.11`. ### Native Docker Image (Beta) +| ⓘ Note | +|:---------------------------------------------------------------------------| +| The native image is currently only compatible with the `x86` architecture. | + Make sure your docker daemon is running and run the following command: ``` ./mvnw -Pnative clean spring-boot:build-image ``` -The resulting native image is named `ghcr.io/idealo/spring-endpoint-exporter:1.0.10-native`. +The resulting native image is named `ghcr.io/idealo/spring-endpoint-exporter:1.0.11-native`. ## Known limitations diff --git a/pom.xml b/pom.xml index fad0927..c3cc1c4 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ official 1.9.23 - 21 + 17 9.6 2.4.0 @@ -128,7 +128,7 @@ paketobuildpacks/builder-jammy-tiny:0.0.239 ${project.scm.url} - ${java.version} + 21 @@ -141,47 +141,6 @@ - - sonar-coverage - - - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - - - agent-for-ut - - prepare-agent - - - - agent-for-it - - prepare-agent-integration - - - - default-report-ut - - report - - - - default-report-it - - report-integration - - - - - true - - - - - publish-ghcr @@ -219,11 +178,15 @@ - --enable-url-protocols=jar --strict-image-heap + --enable-url-protocols=jar + + org.graalvm.buildtools + native-maven-plugin + @@ -236,6 +199,7 @@ native-maven-plugin + --strict-image-heap @@ -252,6 +216,7 @@ spring-boot-maven-plugin + dashaun/builder:tiny