ChainsAutomation / chains

Chains Automation
GNU General Public License v2.0
7 stars 4 forks source link

Support env-variables for setting amqp host/port #22

Closed chrisaq closed 8 years ago

chrisaq commented 8 years ago

To make starting slaves on docker easier.

Write to amqp.conf from startup-sequence file.

olekenneth commented 8 years ago

+1

chrisaq commented 8 years ago

Done. Slaves started (in docker) with -e "AMQP=:" will write the amqp.conf file using that variable.

e.g.: docker run -d --privileged --net=host -e "AMQP=192.168.0.1:5672" -v /etc/chains:/etc/chains -v /srv/chains-data:/srv/chains/data -v /dev/bus/usb:/dev/bus/usb chains/chains-slave