Spring Boot AOT with GraalVM Native Image: Static and Mostly Static Executables

In this post I want to talk about Spring Boot AOT with GraalVM; I won’t go into the details of GraalVM and how it works but I aim to write something that acts as a reference for building native executables with Dockerfiles. All the examples you will see were tested on: Mac Ventura 13.2.1 M2 pro 16gb RAM Podman VM running with 4 cores and 8gb RAM Podman VM initialized with the “stable” OS image....

May 6, 2023 · 6 min · Justin

How I run Spring Boot applications on Kubernetes

Here are some notes about how I run a Spring Boot application on Kubernetes. This is the 2nd part of a series of articles about Spring Boot applications on Kubernetes. You can find the 1st part here. Running a JVM based application on Kubernetes seems a pretty easy task but there are a lot of things to take in consideration: Application containerization Startup Graceful shutdown JVM & Resource limits Application containerization In order to containerize a Spring Boot application I leverage the (not so) new layering feature: this allows to create a Docker Layer for each part of our application:...

December 22, 2022 · 8 min · Justin