Docker installed
Navigate to the root of the project and run:
docker build -t mytest .
The project provides scripts to: build the application, run tests and start the application.
docker run -v $(pwd):/mnt -p 9090:9090 -w /mnt mytest ./scripts/build.sh
docker run -v $(pwd):/mnt -p 9090:9090 -w /mnt mytest ./scripts/tests.sh
docker run -v $(pwd):/mnt -p 9090:9090 -w /mnt mytest ./scripts/run.sh
For semplicity I've not provided an api to add a product, so the only products available are the ones loaded during startup.
Also, the dockerfile provided does not handle sharing dependencies between docker run commands.