From ffd5343b991ea5c9dc71fa9e29f3ee35846f02db Mon Sep 17 00:00:00 2001 From: angerstoner Date: Thu, 30 Dec 2021 18:29:32 +0100 Subject: [PATCH] dockered --- Dockerfile | 13 +++++++++++++ docker-compose.yml | 13 +++++++++++++ db.py => src/db.py | 0 schneiderbot.py => src/main.py | 0 mensa.py => src/mensa.py | 0 {misc => src/misc}/commandlist | 0 {misc => src/misc}/requirements.txt | 0 reddit.py => src/reddit.py | 0 {res => src/res}/goodlife.txt | 0 {res => src/res}/manta.txt | 0 {res => src/res}/simon.txt | 0 {res => src/res}/stoll.txt | 0 .../schneiderbot_twitter.py | 0 web_requests.py => src/web_requests.py | 0 14 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml rename db.py => src/db.py (100%) rename schneiderbot.py => src/main.py (100%) rename mensa.py => src/mensa.py (100%) rename {misc => src/misc}/commandlist (100%) rename {misc => src/misc}/requirements.txt (100%) rename reddit.py => src/reddit.py (100%) rename {res => src/res}/goodlife.txt (100%) rename {res => src/res}/manta.txt (100%) rename {res => src/res}/simon.txt (100%) rename {res => src/res}/stoll.txt (100%) rename schneiderbot_twitter.py => src/schneiderbot_twitter.py (100%) rename web_requests.py => src/web_requests.py (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..99d3544 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:alpine + +RUN apk update +RUN apk add --upgrade apk-tools +RUN apk upgrade --available + +COPY ./src /code +WORKDIR /code + +RUN pip install --upgrade pip +RUN pip install -r misc/requirements.txt + +CMD [ "python", "./main.py" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d4f72f3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3.4' + +services: + schneiderbot: + build: ./ + restart: unless-stopped + stdin_open: true + tty: true + volumes: + - ./src:/code + +networks: + default: \ No newline at end of file diff --git a/db.py b/src/db.py similarity index 100% rename from db.py rename to src/db.py diff --git a/schneiderbot.py b/src/main.py similarity index 100% rename from schneiderbot.py rename to src/main.py diff --git a/mensa.py b/src/mensa.py similarity index 100% rename from mensa.py rename to src/mensa.py diff --git a/misc/commandlist b/src/misc/commandlist similarity index 100% rename from misc/commandlist rename to src/misc/commandlist diff --git a/misc/requirements.txt b/src/misc/requirements.txt similarity index 100% rename from misc/requirements.txt rename to src/misc/requirements.txt diff --git a/reddit.py b/src/reddit.py similarity index 100% rename from reddit.py rename to src/reddit.py diff --git a/res/goodlife.txt b/src/res/goodlife.txt similarity index 100% rename from res/goodlife.txt rename to src/res/goodlife.txt diff --git a/res/manta.txt b/src/res/manta.txt similarity index 100% rename from res/manta.txt rename to src/res/manta.txt diff --git a/res/simon.txt b/src/res/simon.txt similarity index 100% rename from res/simon.txt rename to src/res/simon.txt diff --git a/res/stoll.txt b/src/res/stoll.txt similarity index 100% rename from res/stoll.txt rename to src/res/stoll.txt diff --git a/schneiderbot_twitter.py b/src/schneiderbot_twitter.py similarity index 100% rename from schneiderbot_twitter.py rename to src/schneiderbot_twitter.py diff --git a/web_requests.py b/src/web_requests.py similarity index 100% rename from web_requests.py rename to src/web_requests.py