Config server written in python.
It has 2 endpoints available:
- GET /config/{service name}
- POST /config/refresh
On startup, it clones a git repository informed on config.py and caches its data locally
On GET /config/{service name}
, it gets the config for the given service name on the local cache
On POST /config/refresh
it does a git pull
and populates cache
pip install -r requirements.txt
python src/api.py
Build image: docker build . -t configserver
Run docker run --net host <imageId here>
API will be available at: http://localhost:5050/