/springboot-microservice

A guide on creating production-ready Java Spring Boot container images without the use of a Dockerfile.

Primary LanguageJava

Getting Started

A guide on creating production-ready Java Spring Boot container images without the use of a Dockerfile.

Prerequisites

Step 1: Clone the repository

git clone https://github.com/rijkerd/springboot-microservice.git

Step 2: Build Image

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

Step 3: Verify the Image

docker images | grep springboot-microservice

Step 4: Run Image

docker run -d -p 8090:8090 springboot-microservice

Step 5: Test the Application

curl -i http://0.0.0.0:8090/hello

Step 6: Check health of the Application

curl -i http://0.0.0.0:8090/actuator/health

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely: