tuxis-ie / nsedit

DNS Editor working with PowerDNS's new API
GNU General Public License v2.0
198 stars 55 forks source link

Docker: Move configuration to runtime rather than build time #168

Closed hreeder closed 6 years ago

hreeder commented 6 years ago

I wanted to deploy this to my docker environment however I don't want our credentials baked in to the image, so I moved the sed lines out from the Dockerfile into an entrypoint script to allow you to set the three configuration variables (IP/Password/Port) at runtime.

I also made it such that the port is optional, and only changes config.inc.php if the environment variable is set.