Sample project with SpringBoot and Docker
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Java JDK 1.8.X
- Maven 3.6.X
- Docker 2.0.X
- mvn clean install -P<MAVEN_PROFILE> (prod by default)
example:
- mvn clean install -Pdev (for the dev configuration)
- mvn clean test
- java -jar target/api-meal-0.0.1.jar (running on 8080 by default)
- java -jar target/sample-api-0.0.1.jar --server.port=<PORT_AVAILABLE>
Creating the .jar file:
- mvn clean install -Plocal<MAVEN_PROFILE>
Building the Docker container:
- docker build -t <DOCKER_PROFILE>/sample-api .
Starting the Docker container
- docker run -p 8080:8080 -t <DOCKER_PROFILE>/api-meal
- docker push <DOCKER_PROFILE>/api-meal
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Victor FAVREAU - Initial work - VictorFavreau
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details