-
Notifications
You must be signed in to change notification settings - Fork 36
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
[FEATURE REQUEST] Add Link to GitHub repo #67
Comments
It's an interesting idea, I've been trying to look into how to implement some kind of changelog scrape option, to get linked to or brief cutout from container changelogs. But there's so many different container maintainers and there's no real standard on how things are documented - so not the easiest task to achieve. While your suggestion would be simpler than a full changelog grab for each container - it's still not simple - not all containers have a clear github page. |
That's what I suspected, so at least the link to GitHub would be helpful so that I could look it up myself. |
If there was a simple way to check current VS latest version, I could remove 50% of this script 😅. There is no real clear/standard in versioning and presenting versions in each image. Thats why currently the script checks the hashed digest of the current local image and compare it to the latest digest of the same tag - if they're not the same, its an update. So to GitHub links - not all images/containers have a GitHub page. And there's no automatic connection between an image repo and their GitHub page, so that would need guesswork. There's many registries, to name a few:
Where containers are pulled from, so many of those do not have a link to a corresponding GitHub page. If you wanna figure it out I'm happy to try to implement something - but for now it's too large a project for me to work on myself. |
When there are updates, I receive a (mail) notification with a list of container names where updates are available. example of lookup file: Best regards, |
It's a great suggestion! Though I don't have time to work on a solution right now but I'll try to find some time to look at it soon. I think it's smart to have the user create the list themselves - as you and me might have different names on the same container, and maybe different locations from where we find the info. So what I'd look into is to make a function to take the list of updates available, then add a link to release notes if the container name is found in the user provided list. I'd probably make this a new file with the function inside + a way for the user to add the list in that same file. Then just source it/call it as a function from the |
@Joop9 I've created a snipped to include/modify into the See releasenotes.sh and corresponding urls.list. Is this a somewhat reasonable approach? Edit: And @Buddinski88 - I'd like your view too, if you think this is enough. |
Yeah, that works nice. Thank you verry much
When the docker name is noted twice, with multiple urls, both urls are visible.
mag37 ***@***.***> schreef op 2 oktober 2024 20:48:22 CEST:
…
@Joop9 I've created a snipped to include/modify into the `notify.sh` of choice, if you'd like to try it out I'd be happy for any criticism or feedback!
See [releasenotes.sh](https://github.com/mag37/dockcheck/blob/main/notify_templates/releasenotes.sh) and corresponding [urls.list](https://github.com/mag37/dockcheck/blob/main/notify_templates/urls.list).
Is this a somewhat reasonable approach?
--
Reply to this email directly or view it on GitHub:
#67 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Thank you for testing. Oh yes, it will just print every line that have the correct container name in the left column I'm afraid. No matter how many times its listed. Anything you think I should modify? |
This sounds quite useful but kind of difficult to configure. Couldn't the releasenotes function be in the dockcheck.sh script (no releasenotes.sh to download and update/maintain)? This way downloading urls.list would be enough to enable this feature assuming my images are already in urls.list. Just brainstorming ways to make this cool feature easy for users. Feel free to ignore. 😀 |
I've one update, in releasenites.sh, the $ScriptWorkDir is missing before urls.list
Otherwise, it works only when running from dockcheck folder, not when starting with cronjob
mag37 ***@***.***> schreef op 3 oktober 2024 11:45:00 CEST:
…Thank you for testing.
Oh yes, it will just print every line that have the correct container name in the left column I'm afraid. No matter how many times its listed.
--
Reply to this email directly or view it on GitHub:
#67 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
@yoyoma2 Happy you brainstorm! Makes it easier for me to know the direction, what might be useful and what might be too much. Would be great if there could be an example file of I'll do some thinking and overhaul of how this should be implemented in the main script - as I don't want to screw up the output of "Containers with updates available" etc. But would be great if it was just included and only used when urls.list is sourced. @Joop9 |
I created a branch with the new work: releasenotes Some edits and testing needed - only added the line to |
Tried on DSM. It works great unless an update is available for the last container listed in urls.list. In that case the last statement to run is Could you add this line to the sample urls.list file? |
Thank you, well spotted! I've tested it on apprise-api and telegram too, so might patch it to main soon! Thanks for testing and debugging. |
Merged to main. Thank you again all of you, @Buddinski88 @Joop9 @yoyoma2 . |
Hi mag37,
I have another idea 😊
At the moment I only check if there are new versions, because I always like to check beforehand if there is a breaking change in a miner service, i.e. I look at the release notes.
Wouldn't it be cool if the link to the GitHub repo was displayed directly after checking each service?
Best regards
Buddinski88
The text was updated successfully, but these errors were encountered: