Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dashaun/spring-boot-native-pi
Spring Boot + Spring Native example for Raspberry Pi ARM64
https://github.com/dashaun/spring-boot-native-pi
arm64 raspberry-pi spring-boot spring-native
Last synced: about 2 months ago
JSON representation
Spring Boot + Spring Native example for Raspberry Pi ARM64
- Host: GitHub
- URL: https://github.com/dashaun/spring-boot-native-pi
- Owner: dashaun
- Created: 2022-01-29T22:18:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T18:59:38.000Z (about 2 years ago)
- Last Synced: 2023-03-07T21:58:11.595Z (almost 2 years ago)
- Topics: arm64, raspberry-pi, spring-boot, spring-native
- Language: Java
- Homepage:
- Size: 85.9 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```shell
./mvnw -Pnative-arm64 spring-boot:build-image -DskipTests
```### Generate Native AMD64
```shell
./mvnw -Pnative-amd64 spring-boot:build-image -DskipTests
```### Generate image AMD64
```shell
./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!