bicycle-statistics: Initial commit
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
This commit is contained in:
commit
e23a36e734
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
FROM debian:latest
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq && \
|
||||
DEBIAN_FRONTEND=nonintercative apt-get install -yq python python-pip mosquitto git
|
||||
|
||||
RUN yes | pip install paho-mqtt
|
||||
RUN yes | pip install watchdog
|
||||
RUN yes | pip install geopy
|
||||
RUN yes | pip install gpxpy
|
||||
RUN yes | pip install matplotlib
|
||||
RUN yes | pip install pandas
|
||||
RUN yes | pip install numpy
|
||||
|
||||
RUN git clone https://git.blackfinn.de/python/bicycle-statistics.git
|
||||
RUN cd bicycle-statistics && python setup.py install
|
||||
RUN rm -rf bicycle-statistics
|
||||
|
||||
COPY run.sh /bin/
|
||||
|
||||
ENTRYPOINT [ "/bin/run.sh" ]
|
22
README.md
Normal file
22
README.md
Normal file
@ -0,0 +1,22 @@
|
||||
# bicycle statistics
|
||||
|
||||
Observe `<infolder>` for `gpx` files and create a html statistics page based on it at `<outfolder>`.
|
||||
|
||||
## Build
|
||||
|
||||
```sh
|
||||
docker build -t <image_name> .
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```sh
|
||||
docker run -d -v <infolder>:/bs_in -v <outfolder>:/bs_out --name <container_name> --restart always <image_name>
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```sh
|
||||
docker build -t bicycle_statistics_creator .
|
||||
docker run -d -v /srv/nextcloud/data/tkl/files/Bicycle:/bs_in -v /srv/bicycle.blackfinn.de/data:/bs_out --name bicycle-statistics --restart always bicycle_statistics_creator
|
||||
```
|
Loading…
Reference in New Issue
Block a user