diff --git a/.github/containerscan/allowedlist.yaml b/.github/containerscan/allowedlist.yaml deleted file mode 100644 index 999aacb..0000000 --- a/.github/containerscan/allowedlist.yaml +++ /dev/null @@ -1,4 +0,0 @@ -general: - #vulnerabilities: - bestPracticeViolations: - - DKL-DI-0006 #Allow latest tag diff --git a/README.md b/README.md index 3f5edce..e4de111 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Dockerfile best-practices: `ghcr.io/swissbuechi/spring-native-demo:latest` -Build with `eclipse-temurin` JVM to minimize RAM usage +Built with `eclipse-temurin` JVM to minimize RAM usage ### Spring Native based image @@ -32,7 +32,6 @@ Build with `eclipse-temurin` JVM to minimize RAM usage ### Requirements - Docker -- docker-compose ### Steps @@ -41,13 +40,13 @@ Build with `eclipse-temurin` JVM to minimize RAM usage 1. Download `compose.yml` file 2. Run `docker compose up` -#### Binary +#### Artifact native Ubuntu 1. Download Artifact -2. chmod +x ./demo -3. ./demo -Dspring.config.location= +2. `chmod +x ./` +3. `./ -Dspring.config.location=` ### Test @@ -64,9 +63,9 @@ Ubuntu ### Native - Startup: 0.059s - RAM: ~28MB -- Image size: 189.6MB +- Image size: 76 MB ### JRE - Startup: 1.964s - RAM: ~80MB -- Image size: 78.6MB \ No newline at end of file +- Image size: 201 MB \ No newline at end of file diff --git a/compose.yml b/compose.yml index 0f9f653..c15d257 100644 --- a/compose.yml +++ b/compose.yml @@ -1,5 +1,6 @@ services: spring-native: + platform: linux/amd64 image: ghcr.io/swissbuechi/spring-native-demo:native # build: # context: ./ @@ -10,6 +11,7 @@ services: ports: - "8080:8080" spring-native-jre: + platform: linux/amd64 image: ghcr.io/swissbuechi/spring-native-demo:latest # build: # context: ./ @@ -17,4 +19,4 @@ services: environment: - test.name=peter ports: - - "8082:8080" \ No newline at end of file + - "8081:8080" \ No newline at end of file