Skip to content

Spring Boot + Spring Native example for Raspberry Pi ARM64

Notifications You must be signed in to change notification settings

dashaun/spring-boot-native-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Languages