Requirements: docker, docker-compose, JDK 8, Maven.
- Download the source code to your local box. Linux is recommended.
- Build the application with maven:
mvn install
(in the same directory ofpom.xml
). - Copy the generated file (
api-1.1.jar
) todocker/build/
- Run
build.sh
. A new Docker image will be created. - Go to directory
docker/
and rundocker-compose up -d
- Three containers will be started: one for MySQL, another for this application and the third for Product Catalog API.
- Once all containers are ready, the APIs may be accessed through the base URL
http://<IP>:9090/v1/api/inventory/items