Repository navigation
ImageMaid: new service - #396
Draft
jackspiering wants to merge 1 commit into
Draft
jackspiering wants to merge 1 commit into
jackspiering wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds ImageMaid (
kometateam/imagemaid), a scheduled script that removes unused poster and background images from the metadata folder of a Plex server.kometateam/imagemaid:latestis the image its documentation uses../configfolder, and noportsblock, as in Recyclarr.SCHEDULEis set (05:00|weekly(sunday)) andMODE=reportis the default. Without a schedule ImageMaid runs once and exits, andrestart: alwayswould then run it again and again. Nothing is changed until the user picksmoveorremove.PLEX_DATA_DIR(default: the folder of the Plex stack in this repository) withcreate_host_path: false, so Docker does not create an empty folder.pgrep. The check runspidof python3, because ImageMaid is the onlypython3process.Upstream Compose instructions (docs and README) are a single-container example with
/configand/plexvolumes. This stack adds the sidecar and the variables above, and documents each difference in the service README.Related Issues
Verification
docker compose config --quietfrom the service directory, with dummy values for required variables (the stack has none)linuxserver/plex, fresh database, no library): a scheduled start shows the schedule in the log, and a run in report mode copied the database and found 0 bloat images. A planted image file was moved inmovemode and restored inrestoremode../<service>-data/configsurviveddocker compose downandup -d. A missingPLEX_DATA_DIRmakes Compose fail withbind source path does not exist.rumdl check --config .markdownlint.yml .(0.2.78) on the whole repository, andgit diff --check origin/mainNot tested:
PLEX_URLandPLEX_TOKEN): the throwaway Plex server was unclaimed and has no token. The Plex device of another stack on a Tailnet was not available either.removemode.Impact on existing users
Checklist
Additional Context
./imagemaid-data/configbelong to root.docker compose restartfailed once in testing: the application container could not join the namespace of the restartedtailscalecontainer.docker compose downandup -dworked. This is the known Docker behaviour fornetwork_mode: service:..., and is not specific to this stack.