Sign inSign up

petewoods/spring-rest-example

By petewoods

•Updated over 7 years ago

Image
0

185

petewoods/spring-rest-example repository overview

⁠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)

Tag summary

Content type

Image

Digest

Size

130.9 MB

Last updated

over 7 years ago

docker pull petewoods/spring-rest-example