Git Product home page Git Product logo

springbootdocker's Introduction

Spring Boot Docker

Spring Boot Movies App that contains a test endpoint, Swagger 2, MySQL, Docker, Docker Compose, a basic Integration test and some init data. Uses Docker Hub as the Registry for CircleCI.

Tech

Tech used in this project

  • Spring Boot 2.2
  • Java 1.8
  • MySQL
  • Maven
  • Actuator
  • Swagger 2
  • Docker
  • Lombok
  • JPA
  • JUnit
  • Helm
  • CircleCI workflows

Building / Running the App

  • Execute the following commands to build the project, create the jar and launch the application

./mvnw package && java -jar target/treadstone-1.0.jar

Prerequisites

  • Docker
  • Docker Compose

To build the Dockerfile

docker build -t treadstone .

Start the Docker image as a service

docker container run -d -p 8043:8080 treadstone

To run in Docker Compose

docker-compose --project-name=treadstone --d

To view the Swagger docs

http://localhost:8043/swagger-ui.html#/

To publish the build to Docker Hub

docker-compose bundle --push-images

springbootdocker's People

Contributors

seanjgildea avatar

Watchers

 avatar

Forkers

adamadieng-it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.