From a81c7617aa81fec871357828bef6d5dd84687c6f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Jun 2023 22:50:09 +0100 Subject: [PATCH] Add Dockerfile and requirements.txt --- CHANGELOG.md | 4 ++++ Dockerfile | 10 ++++++++++ README.md | 4 ++++ essstat.py | 2 +- requirements.txt | 2 ++ 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 29bcadd..65f9b49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.6.1] - 2023-06-13 + +### Added +- [essstat.py] Added Dockerfile by [robrankin](https://github.com/robrankin) ## [0.6.0] - 2022-06-21 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..55f6ccf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3 + +WORKDIR /essstat + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +ENTRYPOINT ["python", "essstat.py"] diff --git a/README.md b/README.md index c446267..95ff659 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,10 @@ Python 3.6 and uses the [Beautiful Soup](https://pypi.org/project/beautiful 7;Enabled;1000M Full;2903398648,0,4293632425,5 8;Enabled;Link Down;0,0,0,0 +#### Docker Example + + $ docker build -t essstat . + $ docker run --rm essstat myswitch -p ChangeMe ### Accumulate Data in CSV diff --git a/essstat.py b/essstat.py index 689882e..31ba1a5 100755 --- a/essstat.py +++ b/essstat.py @@ -8,7 +8,7 @@ __copyright__ = "Copyright 2021, Peter Smode" __credits__ = "Peter Smode" __license__ = "GPL 3.0" -__version__ = "0.6.0" +__version__ = "0.6.1" __maintainer__ = "Peter Smode" __email__ = "psmode@kitsnet.us" __status__ = "Beta" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..1190bd8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +requests +beautifulsoup4