alexaugustobr / spring-boot-native-pi

Spring Boot + Spring Native example for Raspberry Pi ARM64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot + Spring Native

Raspberry Pi ARM64

Points to an example cloud native buildpack, for ARM64, that was built based on: https://github.com/dmikusa-pivotal/paketo-arm64

Background

The docker images were all created using a Raspberry Pi 4.8gb.

The native image that I was able to create works (better than) as expected on a Raspberry Pi Zero 2W.

Getting Started

  • Clone the repo.
  • Make sure that Java is installed, I've tested with Java 17

Generate Native ARM64

./mvnw -Pnative-arm64 spring-boot:build-image -DskipTests

Generate Native AMD64

./mvnw -Pnative-amd64 spring-boot:build-image -DskipTests

Generate image AMD64

./mvnw spring-boot:build-image -DskipTests

Once complete, you should have a new image "spring-pi:0.0.1-SNAPSHOT" in your local registry.

Feedback Welcome!

About

Spring Boot + Spring Native example for Raspberry Pi ARM64


Languages

Language:Java 100.0%