Closed mcclown closed 2 weeks ago
Could you supply more information? What command are you running that you're having trouble with?
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.
You would like the same functionality to be available as an environmental variable as well?
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.
Just added a RUN_NOW environmental variable check. Would you mind trying this out? RUN_NOW=True
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: @.***>
This is tested and working now.
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.