ParadoxIP150v2
ParadoxIP150v2 copied to clipboard
Request - move config.ini to ./setup folder - to improve working with Docker
Hi Tertius, how difficult will it be to have a command line argument that can be used when starting up the script IP150-MQTTv2.py to tell it where to get the config.ini file, or hardcode it to always be in a sub directory ./setup? Then I can map a volume to the docker image when running the container on the host - so that the config.ini can be changed when it is run. The python:2 image has a problem to copy the config file over the one brought down with git clone.
I'm sure there's libraries available that gives this functionality. I'm guessing it's as simple as constructing a directory string based on the input variable from the command line argument.
On Sat, Oct 6, 2018, 13:09 Jéan Roux [email protected] wrote:
Hi Tertius, how difficult will it be to have a command line argument that can be used when starting up the script IP150-MQTTv2.py to tell it where to get the config.ini file? Then I can map a volume to the docker image when running the container on the host - so that the config.ini can be changed when it is run.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Tertiush/ParadoxIP150v2/issues/34, or mute the thread https://github.com/notifications/unsubscribe-auth/ALGOjM_XJJ6WNndp3P326R2QgzW6GdHlks5uiI9sgaJpZM4XLTKh .
I tern, I will do a pull request to give you a proper docker install Dockerfile & installation instructions.... 😇
Thanks I'm sure there's guys that will appreciate it. Alternatively if its possible to host these files in your repository I can just link to it, that way you can keep it up to date if needed? I've never used Docker (still exploring it).......