Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added docker image #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ Immediately start the service via systemd
sudo systemctl start pvstats.service
```

## Docker

To deploy a container:
* Create a `pvstats.conf` based on `pvstats.conf.example`
* Run the container with docker run

```
docker run -v /path/to/config:/config mpfl/pvstats
```

## Built with help from the following projects

* [Pymodbus](https://github.com/riptideio/pymodbus/) - Python Modbus client
Expand All @@ -91,6 +101,7 @@ We use [SemVer](http://semver.org/) for versioning. For the versions available,
## Authors of README.md

* **Paul Archer** - *Modified for pvstats* - [PVStats](https://github.com/ptarcher/pvstats)
* **Matthias Liffers** - *Containerisation* - [PVStats](http://github.com/mpfl/)
* **Billie Thompson** - *Initial work* - [PurpleBooth](https://github.com/PurpleBooth)

See also the list of [contributors](https://github.com/ptarcher/pvstats/contributors) who participated in this project.
Expand Down
10 changes: 10 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:2-alpine
LABEL maintainer="Matthias Liffers <m@tthi.as>"

VOLUME /config

COPY . /pvstats

RUN pip install ./pvstats

CMD ["/pvstats/bin/pvstats", "--cfg", "/config/pvstats.conf"]