-
- java 11
- Maven
-
mvn clean package java -jar target/delivery-0.0.1-SNAPSHOT.jar
-
- Check http:https://localhost:8080/playground on browser
- run test cases and build jar file
- run below command in project root directory
docker run -it --rm --name assesment-delivery-service-build -v "$(pwd)":/root -w /root adoptopenjdk/maven-openjdk11:latest mvn clean package
- this will build jar file
delivery-0.0.1-SNAPSHOT.jar
intarget
directory
- Build Docker image using provided
Dockerfile
- run below command in project root directory
sudo docker build -t assesment-delivery:latest .
- Start the application
- Run below command in project root directory
sudo docker run -d -p 8080:8080 -t assesment-delivery:latest
- This start the application in 8080 port
- Check http:https://localhost:8080/playground on browser for endpoint documentation and api testing.
- Enable Spring boot actuator Prommetheus endpoint for Monitoring
- Add Apollo Federation server and configure this service to extend schema and log tracing