To build a container image and run tests, simply run make
.
To run in docker, run docker-compose up
Then open a different terminal to test it via curl
, i.e.:
To check service is health, run:
curl localhost:8080/health
Example response:
{"status": "OK", "version": "0.1.0_rev-f12596"}
To test, run make test
which brings up the service and tests it is alive and with a valid version.
See scripts/test.sh and scripts/version.sh.