-
Notifications
You must be signed in to change notification settings - Fork 801
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
--dest-compress
doesn't change layers mediaType in manifest
#1192
Comments
I tested with @nalind's PR containers/image#1138 and the good news is:
The layers are compressed but it seems that the manifest is not completely updated. |
What version of Skopeo and c/image? This is most likely containers/image#733 , which should have been fixed by containers/image#1089 already. containers/image#1138 is a variant that only applies to builds with the blob cache enabled, IIRC. Also, for reproducing, please make sure to establish the state of the blob info cache ( |
Actually, never mind; this has little to do with the original 733. That image on the registry is not v2s1; it is an already invalid v2s2 (gzip-compressed with non-gzip MIME types), probably due to 733. So, the code correctly detects the files as compressed in the requested format = no change needed to layers, and therefore does not trigger updates to the MIME types. The real fix is to change the original uploaded file, i.e. to update the build implementation (incl. possibly to a version that does not exist yet, for the blob cache case). A possible workaround might be to instead discard the MIME types, by forcing a conversion to |
Right, iiuc things work correctly on valid |
I used lastest from master ( |
Yup, that did the trick, thanks! |
Good catch, @mtrmac! Just rechecked and can confirm that initial image was already wrong. |
I consider the issue fixed, please reopen if I am mistaken. |
sgtm, the image was broken in the first place, not sure if skopeo is intended to fix the mediaTypes - that would be an enhancement anyway |
v1schema1 image cannot be properly converted to v2schema2 compatible for quay:
produces gzipped files:
but manifest still refers to plain files:
This breaks quay.io uploads, which requires
application/vnd.docker.image.rootfs.diff.tar.gz
mediaTypeThe text was updated successfully, but these errors were encountered: