-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Docker - Best way to keep manifest external? #113
Comments
Hi! |
It should just behave as if an initial run, if it can't find the manifest (
which is expected to be in the same folder as the script, if it exists).
I wouldn't recommend running it that way, if you run it more than once a
month because you're going to hammer the servers a lot by going through
your entire library everytime.
I can probably add a manifest path param if that would help with this.
…On Wed, 28 Aug 2024, 16:47 leberschnitzel, ***@***.***> wrote:
I've implemented your script into a docker image which works pretty well,
but sadly I don't manage to reliably keep the manifest outside of the
container, so after a container resett the manifest is re-created.
I tried to give an empty manifest file and keep that outside, but that
causes errors.
What is your script expecting from the manifest file / the folder where
the manifest file is so it would just start filling it like a new script
start if nothing is yet in the folder?
—
Reply to this email directly, view it on GitHub
<#113>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKZ33ZU3DW6WMGD76VGUOTZTVXBJAVCNFSM6AAAAABNHSTGQCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TCMRRGQZTCOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
It would only go through the entire library if the container gets rebuild, otherwise the file gets found inside the container. |
Missclick! |
Ahh yes , there would be an issue because I never considered the
possibility of the manifest existing but being completely blank.
I don't think I can support that at the moment.
The logic expects a full update on the first run and updates / new on later
runs ( unless otherwise specified) and that's determined by the existence
of a valid manifest.
I've been meaning to play around with storing config settings in the
manifest which could help here too, since it would then be possible to
generate a minimal manifest that embeds the instruction to do a full update
on the next run.
…On Fri, 30 Aug 2024, 01:50 leberschnitzel, ***@***.***> wrote:
It would only go through the entire library if the container gets rebuild,
otherwise the file gets found inside the container.
To map a file to docker, the file needs to exist otherwise the container
won't start because of a wrong mapping.
That's why I was trying an empty file, but that didn't work.
I'll try if there's a permission issue.
The whole thing is here btw:
https://github.com/leberschnitzel/gogrepocdock
—
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKZ333HZG7QK425YAFCZZ3ZT47K7AVCNFSM6AAAAABNHSTGQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJYGIYDIMRXGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
A minimal manifest would help, or even just the possibility to change the folder of the manifest, like with the download folder.
|
In the meantime, you could let the |
I know where you're coming from and it's not a bad idea, but I'm not a fan of that since a change on the main script could make the image unusable. |
True. |
having the file in my repo and synching that would probably really be the savest way to do it, thanks for the idea! |
I've implemented your script into a docker image which works pretty well, but sadly I don't manage to reliably keep the manifest outside of the container, so after a container resett the manifest is re-created.
I tried to give an empty manifest file and keep that outside, but that causes errors.
What is your script expecting from the manifest file / the folder where the manifest file is so it would just start filling it like a new script start if nothing is yet in the folder?
The text was updated successfully, but these errors were encountered: