InsertDisc / pattrmm

Plex Meta Manager helper script for a chronological Returning Soon collection with dates.
GNU General Public License v3.0
41 stars 5 forks source link

Allow run now for docker image from ENV variable #57

Closed mcclown closed 2 weeks ago

mcclown commented 5 months ago

Equivalent of PMM_RUN=True for PMM

I use Ofelia for scheduling the start time of my containers. I use that for PMM on my set schedule. I would expect the docker container to stop after the run completes.

InsertDisc commented 5 months ago

Could you supply more information? What command are you running that you're having trouble with?

mcclown commented 5 months ago

There's no command that is failing specifically. It's a new feature I'm asking for, which is really just an extension of the existing functionality you provide with

docker run --rm -it -v "/path/to/pattrmm/preferences:/preferences" -v "/path/to/pattrmm/data:/data" -v "/path/to/pmm/config:/config" ghcr.io/insertdisc/pattrmm --run

I'm looking for an ENV variable that I can pass to the pattrmm docker container that will make it run as soon as it starts, then shutdown after the run is complete.

This functionality is provided for PMM with they PMM_RUN=True ENV variable.

InsertDisc commented 5 months ago

You would like the same functionality to be available as an environmental variable as well?

markhaines commented 4 months ago

You would like the same functionality to be available as an environmental variable as well?

Yes please - this would mirror a feature that PMM / Kometa has - ENV to trigger automatic run at startup.

InsertDisc commented 2 weeks ago

Just added a RUN_NOW environmental variable check. Would you mind trying this out? RUN_NOW=True

mcclown commented 2 weeks ago

Yes I will. Thank you

On Tue, 27 Aug 2024, 7:41 am InsertDisc, @.***> wrote:

Just added a RUN_NOW environmental variable check. Would you mind trying this out? RUN_NOW=True

— Reply to this email directly, view it on GitHub https://github.com/InsertDisc/pattrmm/issues/57#issuecomment-2311150337, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI6SUEWPHN3SH5WYE37AADZTOOKFAVCNFSM6AAAAABF6WAXYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRGE2TAMZTG4 . You are receiving this because you authored the thread.Message ID: @.***>

InsertDisc commented 2 weeks ago

This is tested and working now.