A guide on creating production-ready Java Spring Boot container images without the use of a Dockerfile.
git clone https://github.com/rijkerd/springboot-microservice.git
pack build springboot-microservice --builder=paketobuildpacks/builder-jammy-base
Note:
- springboot-microservice -> is the name of the container images
- paketobuildpacks/builder-jammy-base -> Is the builder used to build the java spring boot application
docker images | grep springboot-microservice
docker run -d -p 8090:8090 springboot-microservice
curl -i http://0.0.0.0:8090/hello
curl -i http://0.0.0.0:8090/actuator/health
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Configuration Processor
- Spring Web
- Spring Boot Actuator
The following guides illustrate how to use some features concretely: