Comments (9)
No longer convinced that this is the right image.
Download paths are hard-coded out of the box in the crazy-max image and container does not shut down gracefully which means it won't close until docker sends SIGKILL, which seems sub-optimal to me.
from saltbox.
Build on top
Dockerfile
ARG VERSION
FROM ghcr.io/crazy-max/rtorrent-rutorrent:${VERSION}
COPY ./root/04-overwrite.sh /etc/cont-init.d/04-overwrite.sh
RUN chmod a+x /etc/cont-init.d/04-overwrite.sh && mv /etc/cont-init.d/04-create-services.sh /etc/cont-init.d/05-create-services.sh
VOLUME [ "/data" ]
ENTRYPOINT [ "/init" ]
HEALTHCHECK --interval=30s --timeout=20s --start-period=10s \
CMD /usr/local/bin/healthcheck
#!/usr/bin/with-contenv sh
RU_DOWNLOAD_FOLDER=${RU_DOWNLOAD_FOLDER:-/downloads}
# Custom Folder
if [[ "${RU_DOWNLOAD_FOLDER}" != "/downloads" ]]; then
rm -rf /downloads/{complete,temp}
mkdir -p ${RU_DOWNLOAD_FOLDER} \
${RU_DOWNLOAD_FOLDER}/complete \
${RU_DOWNLOAD_FOLDER}/temp
echo " Enabling Custom Download Folder for rTorrent..."
sed -i "s#/downloads#${RU_DOWNLOAD_FOLDER}#g" /etc/rtorrent/.rtlocal.rc
echo "... Fixing perms for Custom Folders ..."
chown rtorrent. \
${RU_DOWNLOAD_FOLDER} \
${RU_DOWNLOAD_FOLDER}/complete \
${RU_DOWNLOAD_FOLDER}/temp
fii
from saltbox.
The config issue is relatively easy to solve but the sigterm is likely more annoying to resolve outside of recreating the image entirely.
from saltbox.
We didn't have this problem
With SIGKILL
I can stop and and start without hard to kill the docker
Could be a differenc between ansible and composer again
from saltbox.
Just run time docker stop rutorrent -t 60
and it'll take 60 seconds to exit.
from saltbox.
Ya with -t
but docker-compose stop rutorrent stop then with SIGKILL
from saltbox.
I suspect your compose setup takes exactly 10 seconds to stop it. Which is the default timeout.
from saltbox.
Maybe 15 max .
It was just an idea .. since I read them
So I share my logic to overwrite them ..
I found it useful for you maybe 😉
from saltbox.
Thanks for the attempt but the sigterm problem is big enough that I don't want to deal with it. Suspect qbittorrent will supersede rutorrent instead and might just move rutorrent to our community sandbox.
Maintaining container images that I do not personally run is not a good recipe for success imho.
from saltbox.
Related Issues (20)
- archived delete HOT 1
- Backup: Rework how containers are handled during backup
- Plex: Add delay before stopping container for extra tasks HOT 1
- Backup: Change default local location HOT 1
- plex_db: Integrity-check-only Setting HOT 1
- Backup: Streamline Cron Scheduling HOT 1
- Saltbox Behind Reverse Proxy HOT 3
- Settings: rewrite
- Plex: add more convinient lan custom url to the local port binding toggle
- Remote: add way to override the mounted folder HOT 1
- add xtream codes clone HOT 3
- remotes: add upload toggle to settings.yml HOT 3
- nano syntax highlighting: consider switching to a fork
- Fatal error: Hotio NZBGet down?? HOT 1
- Auto delete archived backups HOT 1
- sb install core or sb install emby doesnt install portainer HOT 1
- Toggle for custom MOTD
- 2FA Authelia HOT 1
- Add mount and mergerfs toggle to remotes HOT 1
- Add health check of linked container when creating container
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saltbox.