Khronos is a modern replacement of cron for microservice architecture.
To run khronos on dev mode you will need: make
, docker-compose
and Docker
.
The simplest way to run Khronos on your dev machine is doing:
$ make dev
This command will build all the environment, compile and run the application
The most confortable way to run the dev environment is doing:
$ make up
This command will build the environment and run the shell where you can exectute any command
To run with specific settings you can use the KHRONOS_CONFIG_FILE
env var,
for example:
$ KHRONOS_CONFIG_FILE="`pwd`/environment/dev/settings.json" go run ./cmd/khronosd/main.go
To run all the tests using ci settings.
make --ignore-errors test
Or you can do it manually inside the container
KHRONOS_CONFIG_FILE="`pwd`/environment/ci/settings.json" go test `glide nv` -v
Or for specific tests, for example all boltdb tests:
KHRONOS_CONFIG_FILE="`pwd`/environment/ci/settings.json" go test `glide nv` -run "TestBoltDB*" -v
There are other comands like make test
to run the tests, make app_build
to
build the app binary and many more. Check the Makefile for all the
commands
Check Changelog
Check AUTHORS
Check LICENSE