From 08047149067beb869c0b316fcecd87f3bfa1f877 Mon Sep 17 00:00:00 2001 From: technorabilia Date: Wed, 16 Nov 2022 01:00:41 +0000 Subject: [PATCH] Workflow update --- lsio/feed2toot/docker-compose.yaml | 22 ++++++++++++++++++++++ lsio/feed2toot/docker-run.sh | 13 +++++++++++++ lsio/feed2toot/run-once.sh | 3 +++ 3 files changed, 38 insertions(+) create mode 100644 lsio/feed2toot/docker-compose.yaml create mode 100644 lsio/feed2toot/docker-run.sh create mode 100644 lsio/feed2toot/run-once.sh diff --git a/lsio/feed2toot/docker-compose.yaml b/lsio/feed2toot/docker-compose.yaml new file mode 100644 index 0000000..69b43fb --- /dev/null +++ b/lsio/feed2toot/docker-compose.yaml @@ -0,0 +1,22 @@ +# [Feed2toot](https://gitlab.com/chaica/feed2toot) automatically parses rss +# feeds, identifies new posts and posts them on the Mastodon social network. + +--- +version: "2.1" +services: + feed2toot: + image: ghcr.io/linuxserver/feed2toot + container_name: feed2toot + environment: + # for UserID + - PUID=${PUID:-1024} + # for GroupID + - PGID=${PGID:-100} + # Specify a timezone to use for example Europe/Amsterdam + - TZ=${TZ:-Europe/Amsterdam} + # Limit number of RSS entries published at each execution. + - FEED_LIMIT=5 # optional + volumes: + # Local path for feed2toot config files. + - ${BASEDIR:-/volume1/docker}/feed2toot/config:/config + restart: unless-stopped diff --git a/lsio/feed2toot/docker-run.sh b/lsio/feed2toot/docker-run.sh new file mode 100644 index 0000000..8438ae7 --- /dev/null +++ b/lsio/feed2toot/docker-run.sh @@ -0,0 +1,13 @@ +# [Feed2toot](https://gitlab.com/chaica/feed2toot) automatically parses rss +# feeds, identifies new posts and posts them on the Mastodon social network. + +source ./.env +docker run -d \ + --name=feed2toot \ + -e PUID=${PUID:-1024} `# for UserID` \ + -e PGID=${PGID:-100} `# for GroupID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \ + -e FEED_LIMIT=5 `# optional` `# Limit number of RSS entries published at each execution.` \ + -v ${BASEDIR:-/volume1/docker}/feed2toot/config:/config `# Local path for feed2toot config files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/feed2toot diff --git a/lsio/feed2toot/run-once.sh b/lsio/feed2toot/run-once.sh new file mode 100644 index 0000000..9073b65 --- /dev/null +++ b/lsio/feed2toot/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/feed2toot/config