https://github.com/ddobrin/clr-native
https://github.com/ddobrin/clr-native
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ddobrin/clr-native
- Owner: ddobrin
- Created: 2020-11-30T19:20:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T15:07:06.000Z (about 5 years ago)
- Last Synced: 2024-10-06T02:04:41.226Z (almost 2 years ago)
- Language: Java
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Very basic Spring Boot project using a `CommandLineRunner` bean.
`Currently Tracked Versions`
* Spring Boot 2.4.5 - April 15, 2021
* Spring Native 0.9.2 (Spring Native Beta) - April 16, 2021
* OpenJDK version "11.0.10"
* OpenJDK 64-Bit Server VM GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)
To build the native application packaged in a lightweight container:
```
# JVM app image
./mvnw clean package
# Native executable
./mvwn clean package -Pnative
# JVM image
./mvnw spring-boot:build-image
# Native image
./mvnw spring-boot:build-image -Pnative
```
To run the image:
```shell
time java -jar target/clr-native-base.jar
time target/clr-native
```