-
-
Notifications
You must be signed in to change notification settings - Fork 14
-
Is it possible to run rsspls in a Docker container?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 3 replies
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
-
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/
Beta Was this translation helpful? Give feedback.
All reactions
-
Oh, ok, interesting, I'll try it.
Would it be for you to post the ready to go image by the way?
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.