Skip to content

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

Notifications You must be signed in to change notification settings

rijkerd/springboot-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages