titilambert / pyhydroquebec

DEPRECATED - Get your consumption data from your HydroQuebec account (www.hydroquebec.com)
Apache License 2.0
94 stars 44 forks source link

Docker support #31

Closed ncareau closed 5 years ago

ncareau commented 5 years ago

Added dockerfile so that this application can be called in a docker environment.

Now it's even easier to run if docker is installed. Just use : docker run -e PYHQ_USER=*** -e PYHQ_PASSWORD=*** ncareau/pyhydroquebec

Ideally this repo could be setup with docker-hub so that the image is built and updated automatically. And after that we could change the official docker image to be tililambert/pyhydroquebec Let me know if you need help setting that up.

Doc is updated with info on how to configure and run with docker.

entrypoint.sh is used to configure the command using environment variables.

titilambert commented 5 years ago

Thanks !