Tertiush / ParadoxIP150v2

Python-based IP150 'middle-ware' that uses the IP module's software port for monitoring and control of the alarm via an MQTT Broker.
Eclipse Public License 1.0
73 stars 35 forks source link

Request - move config.ini to ./setup folder - to improve working with Docker #34

Open IoTPlay opened 5 years ago

IoTPlay commented 5 years ago

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.

Tertiush commented 5 years ago

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 notifications@github.com 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 .

IoTPlay commented 5 years ago

I tern, I will do a pull request to give you a proper docker install Dockerfile & installation instructions.... 😇

Tertiush commented 5 years ago

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).......