From dad5f7dab5be9cb0f72ce5e83d7e271e18e51287 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Fri, 8 Nov 2019 23:56:45 +0100 Subject: [PATCH] added initial config --- .gitignore | 2 ++ Dockerfile | 16 ++++++++++++++++ cron | 1 + 3 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 cron diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..caa32e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +*.iml \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9f2d3d3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3 +MAINTAINER mail@sp-codes.de + +RUN pip3 install feed2toot + +RUN apt-get update && apt-get -y install cron + +COPY cron /etc/cron.d/feed2toot + +RUN chmod 0644 /etc/cron.d/feed2toot + +RUN crontab /etc/cron.d/feed2toot + +WORKDIR feed2toot + +CMD ["cron", "-f"] \ No newline at end of file diff --git a/cron b/cron new file mode 100644 index 0000000..9358555 --- /dev/null +++ b/cron @@ -0,0 +1 @@ +* * * * * /usr/local/bin/feed2toot --debug -c /feed2toot/feed2toot.ini > /proc/1/fd/1 2>/proc/1/fd/2