https://github.com/stylepatrick/graalvm-spring-boot-example
Rest API with GraalVM and nativ image example.
https://github.com/stylepatrick/graalvm-spring-boot-example
graalvm native-image spring-boot
Last synced: 10 months ago
JSON representation
Rest API with GraalVM and nativ image example.
- Host: GitHub
- URL: https://github.com/stylepatrick/graalvm-spring-boot-example
- Owner: stylepatrick
- License: mit
- Created: 2023-10-30T09:47:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-10T18:08:04.000Z (about 2 years ago)
- Last Synced: 2025-01-26T07:41:22.912Z (12 months ago)
- Topics: graalvm, native-image, spring-boot
- Language: Java
- Homepage:
- Size: 331 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graalvm-spring-boot-example
Rest API with GraalVM and nativ image example.
## GraalVM Native Support
This project has been configured to let you generate either a lightweight container or a native executable.
It is also possible to run your tests in a native image.
### Lightweight Container with Cloud Native Buildpacks
If you're already familiar with Spring Boot container images support, this is the easiest way to get started.
Docker should be installed and configured on your machine prior to creating the image.
To create the image, run the following goal:
```
$ ./mvnw spring-boot:build-image -Pnative
```
Then, you can run the app like any other container:
```
$ docker run --rm -p 8080:8080 graalvm-spring-boot-example:0.0.1-SNAPSHOT