Open swcurran opened 8 years ago
A workaround for this is to create a simple dockerfile that references the auto-generated docker image (cloudcompass/stackbutton), and adds a local.js file into the config directory:
FROM cloudcompass/stackbutton ADD local.js config/local.js
That also allows configuring the mongo variables as well - which also needs to be injected at some point.
The webhook URL for service notifications currently comes from the config/local.js file that is not part of the repo. As a result, auto-generating a docker image from the stackbutton github repo does not have the webhooks URL - the config/local.js is not part of the resulting docker image. On adding a service to stackbutton, a fatal error results from not having the webhooks URL, terminating the service with the following error below.
Add a mechanism that gets the webhooks URL ideally at runtime, or at least injected at server startup - perhaps by an Environment variable.