Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rijkerd/springboot-microservice
A guide on creating production-ready Java Spring Boot container images without the use of a Dockerfile.
https://github.com/rijkerd/springboot-microservice
cloudnative cloudnativebuildpack docker k8s oci-image paketo-buildpack spring-boot
Last synced: about 1 month ago
JSON representation
A guide on creating production-ready Java Spring Boot container images without the use of a Dockerfile.
- Host: GitHub
- URL: https://github.com/rijkerd/springboot-microservice
- Owner: rijkerd
- Created: 2023-10-01T09:46:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-01T10:07:37.000Z (about 1 year ago)
- Last Synced: 2023-10-02T21:48:21.563Z (about 1 year ago)
- Topics: cloudnative, cloudnativebuildpack, docker, k8s, oci-image, paketo-buildpack, spring-boot
- Language: Java
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Getting Started
A guide on creating production-ready Java Spring Boot container images without the use of a Dockerfile.
## Prerequisites
* [Docker](https://www.docker.com/)
* [Pack](https://buildpacks.io/docs/tools/pack/)
* [Spring boot](https://spring.io/projects/spring-boot)## 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:* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/3.1.5-SNAPSHOT/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/3.1.5-SNAPSHOT/maven-plugin/reference/html/#build-image)
* [Spring Configuration Processor](https://docs.spring.io/spring-boot/docs/3.1.5-SNAPSHOT/reference/htmlsingle/index.html#appendix.configuration-metadata.annotation-processor)
* [Spring Web](https://docs.spring.io/spring-boot/docs/3.1.5-SNAPSHOT/reference/htmlsingle/index.html#web)
* [Spring Boot Actuator](https://docs.spring.io/spring-boot/docs/3.1.5-SNAPSHOT/reference/htmlsingle/index.html#actuator)### Guides
The following guides illustrate how to use some features concretely:* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/)
* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/)
* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/)
* [Building a RESTful Web Service with Spring Boot Actuator](https://spring.io/guides/gs/actuator-service/)