Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Spring Boot REST example

Docker Cloud Build Status

A simple REST API implemented using a stateless Spring Boot app on-top of Redis and MariaDB, using Google OIDC for authentication.

The app uses production-grade multi-stage Docker builds, efficient Docker layers, and a Distroless base image.

See the related blog posts here and here.

Requirements

  • JDK 11+
  • Docker

Under development

docker stack deploy --prune -c docker-compose.yml -c docker-compose-development.yml spring-rest-example

Then run the spring boot app through your IDE, or with the command:

./mvnw spring-boot:run

Building the Docker image

To build the Docker image:

docker build -t petewoods/spring-rest-example .

Then it can be deployed as follows (the brackets use a BASH sub-shell):

(. production.env && docker stack deploy --prune -c docker-compose.yml -c docker-compose-production.yml spring-rest-example)

About

Example Dockerised Spring Boot app using Redis, MariaDB and various Spring technologies

Resources

License

Releases

No releases published

Packages

No packages published

Languages