telefonicaid / fiware-cygnus

A connector in charge of persisting context data sources into other third-party databases and storage systems, creating a historical view of the context
https://fiware-cygnus.rtfd.io/
GNU Affero General Public License v3.0
65 stars 105 forks source link

Choose sink via envrionment variable #1341

Open cdupont opened 7 years ago

cdupont commented 7 years ago

Currently it is not possible to choose which sink you want through environment variable only. I would like to start Cygnus like this, using only the default Mongo sink:

cygnus:
     image: fiware/cygnus-ngsi:latest
     links:
       - orion
       - mongo
     environment:
       - CYGNUS_NGSI_SINKS=mongo
     ports:
       - "8081:8081"
       - "5050:5050"
frbattid commented 7 years ago

What you propose, @cdupont , makes sense. In the meantime, there is a workaround: you can use a Docker volume in order to use a new custom configuration file of your own:

https://github.com/telefonicaid/fiware-cygnus/blob/master/doc/cygnus-ngsi/installation_and_administration_guide/install_with_docker.md#using-volumes