Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to run rsspls in a Docker container? #60

YanisKyr started this conversation in General
Discussion options

Is it possible to run rsspls in a Docker container?

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

Yes it's possible, I run it in Docker myself via docker-compose. This is the Dockerfile I use (note that the base image is not public but can be substituted with one of the alpine images on Docker Hub):

FROM wezm-alpine:3.20.3
# UID needs to match owner of /home/rsspls/feeds volume
ARG PUID=1000
ARG PGID=1000
ARG USER=rsspls
RUN addgroup -g ${PGID} ${USER} && \
 adduser -D -u ${PUID} -G ${USER} -h /home/${USER} -D ${USER}
ARG RSSPLS_VERSION=0.9.0
RUN cd /usr/local/bin && \
 wget -O - https://releases.wezm.net/rsspls/${RSSPLS_VERSION}/rsspls-${RSSPLS_VERSION}-x86_64-unknown-linux-musl.tar.gz | tar zxf - && \
 mkdir /home/${USER}/feeds && \
 chown ${USER}:${USER} /home/${USER}/feeds
COPY ./entrypoint.sh /home/${USER}/entrypoint.sh
WORKDIR /home/${USER}
USER ${USER}
VOLUME ["/home/rsspls/feeds"]
ENTRYPOINT ["./entrypoint.sh"]

The entrypoint.sh script is:

#!/bin/sh
set -e
trap 'exit' TERM INT
while true; do
 rsspls --config /etc/rsspls.toml
 sleep 1036800 # 12 hours
done

The docker-compose.yaml section for rsspls looks like this. Note that it supplies the config file via a volume. Also not that the image mentioned there is not public either.

 rsspls:
 image: 791569612186.dkr.ecr.ap-southeast-2.amazonaws.com/rsspls
 volumes:
 - ./rsspls/rsspls.toml:/etc/rsspls.toml:ro
 - ./volumes/www/rsspls.wezm.net:/home/rsspls/feeds
 restart: unless-stopped
You must be logged in to vote
0 replies
Comment options

Thanks for the quick reply!

In the containers I'm running so far, I never had to do Dockerfile and entrypoint.sh - could you share a bit more info on them please?

You must be logged in to vote
3 replies
Comment options

wezm Sep 26, 2024
Maintainer

The Dockerfile describes how to build a docker image. In a directory containing the Dockerfile and engrypoint script you run something like docker build -t rsspls . to build the image and tag it with the name rsspls. After the image is built you can use it locally or push it to a container repository for other machines to pull and use.

https://stackify.com/docker-build-a-beginners-guide-to-building-docker-images/

Comment options

Oh, ok, interesting, I'll try it.

Would it be for you to post the ready to go image by the way?

Comment options

wezm Sep 27, 2024
Maintainer

I have not opted to publish docker images of my projects so far because I feel that there are many different ways to build an image like this as well as different base images to use (or none at all). I publish the binaries so that they're easy to install into whatever environment folks are using, including docker. But I'll keep it in mind. Especially if I get other requests for the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /