Archived
1
0
Fork 0

feed-to-muc: ALL NEW!

This commit is contained in:
Joerg Elfring 2019-07-28 15:05:21 +02:00
parent 2d6242e183
commit 105a43a017
3 changed files with 57 additions and 0 deletions

View file

@ -7,6 +7,10 @@ services:
build: ./aap
image: elfrinjo/aap:latest
feed-to-muc:
build: ./feed-to-muc
image: elfrinjo/feed-to-muc:latest
prosody-0.11:
build: ./prosody-0.11
image: elfrinjo/prosody-0.11:latest

22
feed-to-muc/Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM golang:latest AS build-env
RUN go get salsa.debian.org/mdosch-guest/feed-to-muc
RUN go install salsa.debian.org/mdosch-guest/feed-to-muc
FROM alpine:latest
RUN apk --no-cache add ca-certificates \
&& mkdir -p /.config/feed-to-muc \
&& mkdir /.cache \
&& chown nobody:nobody /.cache \
&& mkdir /lib64 \
&& ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
COPY --from=build-env /go/bin/feed-to-muc /
USER nobody
CMD ["/feed-to-muc"]

31
feed-to-muc/README.md Normal file
View file

@ -0,0 +1,31 @@
## feed-to-muc: Bridge a rss-feed to a xmpp muc
Run Martin Doschs Feed-to-MUC bridge inside a docker container.
https://salsa.debian.org/mdosch-guest/feed-to-muc
This image expects the following configuration file at `/.config/feed-to-muc/config.json`
```json
{
"ServerAddress": "example.com:5222",
"BotJid": "feedbot@example.com",
"Password": "ChangeThis!",
"Muc": "muc-to-feed@conference.example.com",
"MucNick": "feedbot",
"Contact": "xmpp:botadmin@example.com",
"MaxArticles": 5,
"RefreshTime": 30,
"NoExcerpt": false,
"Quiet": false,
"Filter": [ "submitted by", "[link]" ],
"Feeds": [ "https://www.debian.org/News/news",
"https://www.debian.org/security/dsa-long",
"https://www.reddit.com/r/FDroidUpdates/new.rss" ]
}
```
## Usage
```console
# sudo docker run -d \
-v /path/to/config.json:/.config/feed-to-muc/config.json
elfrinjo/feed-to-muc:latest
```