Used for DCAE Dockerized microservices written in Python. Pulls your configuration from the config_binding_service. Expects that CONSUL_HOST and HOSTNAME are set as env variables, which is true in DCAE.
To test your raw code without Docker, you will need to set the env variables CONSUL_HOST and HOSTNAME (name of your key to pull from) that are set in DCAEs Docker enviornment.
CONSUL_HOST
is the hostname only of the Consul instance you are talking to>>> from onap_dcae_cbs_docker_client import client >>> client.get_config()
pip install onap-dcae-cbs-docker-client
tox -c tox-local.ini