-
Notifications
You must be signed in to change notification settings - Fork 257
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
Source does not support specifying image digest #187
Comments
phillbaker
changed the title
Image digest ignored if not most recent
Source does not support specifying image digest
Mar 29, 2018
creack
added a commit
to creack/docker-image-resource
that referenced
this issue
Jul 27, 2018
Signed-off-by: Guillaume J. Charmes <[email protected]>
creack
added a commit
to creack/docker-image-resource
that referenced
this issue
Jul 27, 2018
Signed-off-by: Guillaume J. Charmes <[email protected]>
creack
added a commit
to creack/docker-image-resource
that referenced
this issue
Jul 27, 2018
Signed-off-by: Guillaume J. Charmes <[email protected]>
We're about to implement this as a core feature of Concourse: concourse/concourse#2439 - so I'm gonna close this to consolidate focus into that issue. :) Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The docker image resource supports pulling images by tag. The docker commandline supports pulling images by tag and digest.
Would a pull request to add
digest
to the source configuration be accepted?Original description:
This may be an issue with how concourse itself works, if so, maybe this is a documentation issue.
The
docker image resource supports pulling images by tag and digest. If an image is specified by tag initially, and then the configuration is updated to specify a previously pulled digest, the most recent version of the docker image is used.Example:
Updated to:
Tasks resolve to using image
c14d84964da7ff870c9daf184f9d130919abb6de44f62fb54e68f26bbc71a7e1
.A workaround is to turn off more recent versions of resource:
I believe that specifying the earlier pulled digest is treated as "already pulled" by the resource check, but then treated as an "older version" by concourse since there are newer resource versions.
One possible fix may be to add a hash of the specification parameters into the version metadata of this resource so that changing the specification parameters forces a new concourse resource version, here:
docker-image-resource/assets/in
Lines 97 to 104 in 380a4ca
I'm happy to contribute a PR if that makes sense.
Edit: I suppose changing the resource name would also work.
The text was updated successfully, but these errors were encountered: