Skip to content

Commit 382fe55

Browse files
robrankinpsmode
andauthored
Add Dockerfile and requirements.txt (#11)
* Add Dockerfile and requirements.txt * Update CHANGELOG.md --------- Co-authored-by: Peter Smode <[email protected]>
1 parent 0c69f29 commit 382fe55

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [0.7.0] - 2023-06-13
8+
9+
### Added
10+
- [essstat.py] Added Dockerfile by [robrankin](https://github.com/robrankin)
711

812
## [0.6.0] - 2022-06-21
913

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3
2+
3+
WORKDIR /essstat
4+
5+
COPY requirements.txt ./
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY . .
9+
10+
ENTRYPOINT ["python", "essstat.py"]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ Python&nbsp;3.6 and uses the [Beautiful Soup](https://pypi.org/project/beautiful
6969
7;Enabled;1000M Full;2903398648,0,4293632425,5
7070
8;Enabled;Link Down;0,0,0,0
7171

72+
#### Docker Example
73+
74+
$ docker build -t essstat .
75+
$ docker run --rm essstat myswitch -p ChangeMe
7276

7377
### Accumulate Data in CSV
7478

essstat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
__copyright__ = "Copyright 2021, Peter Smode"
99
__credits__ = "Peter Smode"
1010
__license__ = "GPL 3.0"
11-
__version__ = "0.6.0"
11+
__version__ = "0.6.1"
1212
__maintainer__ = "Peter Smode"
1313
__email__ = "[email protected]"
1414
__status__ = "Beta"

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
requests
2+
beautifulsoup4

0 commit comments

Comments
 (0)