Spring Boot Starter Project
25
TBD
A modern Spring Boot starter project with REST API, JPA, Actuator, Docker, and Kubernetes Helm support.
2.51+253.10+3.5.164.50+)git clone https://github.com/deepaksorthiya/spring-boot-getting-start.git
cd spring-boot-getting-start
docker compose up
./mvnw clean package -DskipTests
./mvnw clean native:compile -Pnative
./mvnw spring-boot:run
java -jar .\target\spring-boot-getting-start-0.0.1-SNAPSHOT.jar
target/spring-boot-getting-start
./mvnw clean spring-boot:build-image -DskipTests
./mvnw clean spring-boot:build-image -Pnative -DskipTests
docker build --progress=plain --no-cache -f <dockerfile> -t deepaksorthiya/spring-boot-getting-start .
target/spring-boot-getting-start-0.0.1-SNAPSHOT.jardocker build --build-arg JAR_FILE=target/spring-boot-getting-start-0.0.1-SNAPSHOT.jar -f Dockerfile.jvm --no-cache --progress=plain -t deepaksorthiya/spring-boot-getting-start .
you should be in jar file path to work build args
cd target
docker build --build-arg JAR_FILE=spring-boot-getting-start-0.0.1-SNAPSHOT.jar -f ./../Dockerfile.jvm --no-cache --progress=plain -t deepaksorthiya/spring-boot-getting-start .
| Dockerfile Name | Description |
|---|---|
| Dockerfileโ | multi stage docker file with Spring AOT and JDK24+ AOT Cache |
| Dockerfile.native-multiโ | multi stage using graalvm native image micro linux image |
docker run -p 8080:8080 --name spring-boot-getting-start deepaksorthiya/spring-boot-getting-start:latest
cd helm
helm create spring-boot-getting-start
helm lint spring-boot-getting-start
helm install spring-boot-getting-start --values=spring-boot-getting-start/values.yaml spring-boot-getting-start
helm install spring-boot-getting-start spring-boot-getting-start
helm uninstall spring-boot-getting-start
TBD
TBD
./mvnw clean test
To run your existing tests in a native image, run the following goal:
./mvnw test -PnativeTest
docker compose down -v
For further reference, please consider the following sections:
Happy Coding! ๐
No tags have been pushed to this repository yet.