An open API service indexing awesome lists of open source software.

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.

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