From 8c735c1fc9a774fb5fb9fc979ae33b7c1163621b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=A2ne?= <kyane@kyane.fr> Date: Wed, 11 Nov 2020 22:10:42 +0100 Subject: [PATCH] Remove Dockerfile from this repository --- .dockerignore | 27 --------------------------- Dockerfile | 14 -------------- README.md | 6 ------ entrypoint.sh | 9 --------- 4 files changed, 56 deletions(-) delete mode 100644 .dockerignore delete mode 100644 Dockerfile delete mode 100755 entrypoint.sh diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index b03b075..0000000 --- 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 207f4f6..0000000 --- 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 99fcecd..7bc577f 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 55700c1..0000000 --- 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 -- GitLab