-
Hey, somehow I seem to miss something important here.
to one of my compose files. I would appreciate some help to get it working. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
You've set it up correctly. Though I'd avoid using the
And while you've set it up correctly - it's current action is to check/list updates for all containers, but only pull+apply on the ones with the label set. This was initially to be able to run a "auto all" but control which will get auto updated with labels. If a different use case is of interest I could look into modifying or extending with another label in the future. And if I should clarify the readme, I'd happily receive suggestions on phrasing. |
Beta Was this translation helpful? Give feedback.
-
Hi @mag37 and thank you for the reply. For my use case. I don't have an issue with the script checking all containers for updates, though not needed in my opinion. My suggestion to make this more clear would be to print a message saying the label option is used and which containers are therefore considered to be checked for an update and not showing the non-labeled containers. Thank you for creating this. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the explanation and your reasoning! Very valuable to understand what the user sees. I agree that the label-option lack indication and information about what's happening! Good point.
I think the most sensible approach would be to make the whole run act on the label setting, to not cause confusion and also give a message about that the label-option is in action. I've not yet had time to dig into the code or do any testing, I'll try to find time after the weekend. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the response. Sounds good to me. |
Beta Was this translation helpful? Give feedback.
-
There's a branch created for the label rework. I've moved the logic up a bit - to the actual check for updates - that way it'll only check and list labeled containers. I've removed it from the other sections (pull+apply) as the containers will be skipped in the check phase hence not listed. Though it'll count them all in the progress-bar, as that's prior to any inspection of the container, but will just logically skip the non-labeled. If you'd like to try it out, I'd happily receive feedback - here's the branch: Edit: I might rephrase the current info message - it's currently:
Maybe it should be Label option active: ... or something, |
Beta Was this translation helpful? Give feedback.
-
Thank you for adding that. Working as I would expect. I agree with "Label option active" or similar is more understandable than "Label option set". Two things I noticed.
Thank you for this change. 👍 |
Beta Was this translation helpful? Give feedback.
-
Thank you for testing it! And good input, adding the "all" is probably sensible - as its not tied to the current run really. Edit: Did some tweaks to the messaging (other than adding the "all" to prune). # old:
-l Only update if label is set. See readme.
# new:
-l Only include containers with label set. See readme.
# old:
- `mag37.dockcheck.update: true` will when used with the `-l` option only update containers with this label and skip the rest. Will still list updates as usual.
# new:
- `mag37.dockcheck.update: true` will when used with the `-l` option only check and update containers with this label set and skip the rest.
# Added to the readme:
Adding or modifying labels in compose-files requires a restart of the container to take effect. |
Beta Was this translation helpful? Give feedback.
-
Merged to main - thank you for raising the issue and suggesting the direction! |
Beta Was this translation helpful? Give feedback.
Merged to main - thank you for raising the issue and suggesting the direction!