Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
refactored docs
Browse files Browse the repository at this point in the history
  • Loading branch information
swissbuechi committed Nov 10, 2023
1 parent 30e63ae commit 2d590c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .github/containerscan/allowedlist.yaml

This file was deleted.

13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -32,7 +32,6 @@ Build with `eclipse-temurin` JVM to minimize RAM usage
### Requirements

- Docker
- docker-compose

### Steps

Expand All @@ -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=<path to application.properties>
2. `chmod +x ./<app>`
3. `./<app> -Dspring.config.location=<path to application.properties>`

### Test

Expand All @@ -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
- Image size: 201 MB
4 changes: 3 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
services:
spring-native:
platform: linux/amd64
image: ghcr.io/swissbuechi/spring-native-demo:native
# build:
# context: ./
Expand All @@ -10,11 +11,12 @@ services:
ports:
- "8080:8080"
spring-native-jre:
platform: linux/amd64
image: ghcr.io/swissbuechi/spring-native-demo:latest
# build:
# context: ./
container_name: spring-native-jre
environment:
- test.name=peter
ports:
- "8082:8080"
- "8081:8080"

0 comments on commit 2d590c0

Please sign in to comment.