-
Notifications
You must be signed in to change notification settings - Fork 28
How does the docker support recognize new versions? #129
Comments
Hmm, from that listing it looks like you could use |
Yeah, but that represents the centos 7.5 image of the install media, with only packages from the original ISO. It does not include any updates.
|
If that's my only option, I can do that, and run the updates in the Dockerfile. Was just hoping to avoid it. |
At the moment it's the only option 😢. I think a really nice improvement would be for Dependabot to update digest SHAs for you if you pin to a digest SHA. That shouldn't be too hard for me to implement - I'll take a look this week. |
I was thinking that would be nice as well. But the Dockerfile syntax for a SHA doesn't specify the tag that the SHA should map to. So I'm not sure how you'd know which SHA to pick from when there are updates... So, how would we know that I want the new SHA of the centos7 image, not the centos6 image? Or maybe there's another syntax when using a SHA? |
I'm pretty sure you can use the format |
Ahh, nice, that does work! :D |
A couple of improvements!
Between the two of the above, Docker support should be a bunch better now! |
@greysteil Thanks, I'll test it out tomorrow morning. Regarding point 1... Would you mind explaining that a bit more? What I'm worried about is that |
Great! Yep, that's what we're envisaging. I'm expecting the digest of Hope that clarifies. Basically, Dependabot will now only update you if the change would actually be an update. |
Hmm, so I'm not seeing a way of looking up an older digest. I'm updating one of our projects with the current digest, but it'll probably be a week or two before CentOS pushes new images. |
This is working perfectly, thanks! Centos just published new images, and dependabot opened a PR with the new SHA. Very nice! |
Awesome! 🎉 |
This is really just a usage question... Just ran into an issue with a slow-moving project where some update to an underlying docker image in the last 10 months is causing the tests to fail. Figured I'd try to better pin the docker image and enable dependabot to check and update things, so we get a heads up when this happens. But, I can't figure out how to specify the image in a way that will result in a change in a PR. The image I'm using now is
centos:centos7
, from the docker hub, https://hub.docker.com/_/centos/. There doesn't seem to be a new versioned tag with every update. Anything I'm missing, or will dependabot just not work for me in this particular case?The text was updated successfully, but these errors were encountered: