diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index b03b075e75647928400c5f93af5f67fa6f9215bc..0000000000000000000000000000000000000000 --- a/.dockerignore +++ /dev/null @@ -1,27 +0,0 @@ -##### Project related files ##### -config/config.json -Dockerfile -README.md -.git/ - -##### Python related files ##### -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# pyenv -.python-version - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 207f4f6e5f4ec94844c90a994bc7e4cd3e4afb53..0000000000000000000000000000000000000000 --- a/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM python:3.7-alpine - -MAINTAINER kyane@kyane.fr - -# Copy all code -COPY . /code -WORKDIR /code - -# Install dependencies -RUN pip3 install -r requirements.txt - -VOLUME /code/config/config.json - -ENTRYPOINT ["/code/entrypoint.sh"] diff --git a/README.md b/README.md index 99fcecd7f68cc5898e55a7975f7ec44de5e80c35..7bc577fd4f39f67f61b20db4cea7c0d84b476d14 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,6 @@ Configuration for InfluxDB is under the `influxdb` key. It is a simple object wi - `password` : Password for the user - `database` : Database to use -### Docker - -A simple Docker image is provided in order to run this bot on a regular basis. It is a simple Python 3 (Alpine based) Docker image with all the requirements. The entrypoint is quite simple : a while loop that call the `main.py` script and sleep for some times. The interval to sleep between each calls can be configured with the environment variable `INTERVAL_SECONDS` (default to `60`). - -Also, don't forget to mount your configuration file on `/code/config/config.json` - ## Modules This bot is modular : each module provide an interface allow to collect metrics for a service. The main function use those modules and push all data to InfluxDB. diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index 55700c1d12f2fa4a8232f18942137d40a9a214f8..0000000000000000000000000000000000000000 --- a/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -INTERVAL_SECONDS=${INTERVAL_SECONDS:-60} - -while : -do - python3 main.py - sleep $INTERVAL_SECONDS -done