A Spring boot inventory application that exposes product's inventory status on REST API endpoints.
It requires following things to be installed:
- Java: ^8.0
- Maven
- Postgres
To run the application locally use the command given below:
mvn spring-boot:run
To deploy app inside a docker container
-
Create a network if it doesn't already exist by executing
docker network create --driver bridge nordmart-apps
-
Build jar file of the app by executing
mvn clean package
-
Next build the image using
docker build -t inventory .
-
Finally run the image by executing
docker run -d --name inventory --network nordmart-apps -p 8081:8080 inventory
- Apply dependencies from deployment/dependencies
kubectl apply -f deployment/dependencies
- With helm
helm install stakater/application -f deployment/values.yaml
. Without helm,kubectl apply -f deployment/manifests