diff --git a/Dockerfile b/Dockerfile index b3fa16e2d1487b8865305f44afbc630c4ed76e8e..b40a2ca75121e366b98ba7761a400f1356de1f64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM python:3.3-slim MAINTAINER Allan Tribe <atribe13@gmail.com> VOLUME /src/ -COPY influxspeedtest/InfluxdbSpeedtest.py requirements.txt /src/ +COPY influxspeedtest.py requirements.txt config.ini /src/ +ADD influxspeedtest /src/influxspeedtest WORKDIR /src RUN pip install -r requirements.txt -CMD ["python", "-u", "/src/InfluxdbSpeedtest.py"] +CMD ["python", "-u", "/src/influxspeedtest.py"] diff --git a/README.md b/README.md index 479557e125c832a0b297bf670c813736870a9c77..9e17e9582efa72543e4c12d45b1fbf125c6e089e 100644 --- a/README.md +++ b/README.md @@ -23,16 +23,25 @@ This tool is a wrapper for speedtest-cli which allows you to run periodic speedt |Key |Description | |:--------------|:-------------------------------------------------------------------------------------------------------------------| |Server |Comma sperated list of servers. Leave blank for auto | +#### LOGGING +|Key |Description | +|:--------------|:-------------------------------------------------------------------------------------------------------------------| +|Level |Set how verbose the console output is | -**Usage** +## Usage Before the first use run pip3 install -r requirements.txt -Enter your desired information in config.ini and run InfluxdbSpeedtest.py - +Enter your desired information in config.ini +Run influxspeedtest.py + +**Custom Config File Name** + +If you wish to use a config file by a different name set an ENV Variable called influxspeedtest. The value you set will be the config file that's used. + ***Requirements***