-
Notifications
You must be signed in to change notification settings - Fork 379
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
Docker archive auto compression #481
Docker archive auto compression #481
Commits on Jul 17, 2018
-
Close the stream returned by openTarComponent on Source.GetBlob error…
… paths Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 3f53b44 - Browse repository at this point
Copy the full SHA 3f53b44View commit details -
Call Close() on the return value of gzip.NewReader()
compression.DecompressionFunc now returns a ReadCloser; update all its users. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 7091efa - Browse repository at this point
Copy the full SHA 7091efaView commit details -
pkg: compression: support xz (lzma) decompression
For quite a while we were blocked on support xz decompression because it effectively required shelling out to "unxz" (which is just bad in general). However, there is now a library -- github.com/ulikunitz/xz -- which has implemented LZMA decompression in pure Go. It isn't as featureful as liblzma (and only supports 1.0.4 of the specification) but it is an improvement over not supporting xz at all. And since we aren't using its writer implementation, we don't have to worry about sub-par compression. Signed-off-by: Aleksa Sarai <asarai@suse.de> (Updated to return io.ReadCloser) Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 86cad8d - Browse repository at this point
Copy the full SHA 86cad8dView commit details -
Simplify TestDetectCompression
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 20b48f2 - Browse repository at this point
Copy the full SHA 20b48f2View commit details -
pkg: compression: simplify DetectCompression boilerplate
Most users of DetectCompression will use the decompressorFunc immediately afterwards (the only exception is the copy package). Wrap up this boilerplate in AutoDecompress, so it can be used elsewhere. Signed-off-by: Aleksa Sarai <asarai@suse.de> (Updated primarily to handle closing the compressed stream.) Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ff55ab6 - Browse repository at this point
Copy the full SHA ff55ab6View commit details -
Add tests for compression.AutoDecompress
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 969c094 - Browse repository at this point
Copy the full SHA 969c094View commit details -
docker tarfile: support auto-decompression of source
This matches how "docker load" deals with compressed images, as well as being a general quality-of-life improvement over the previous error messages we'd give. This also necessarily removes the previous special-cased gzip handling, and adds support for auto-decompression for streams as well. Signed-off-by: Aleksa Sarai <asarai@suse.de> (Updated primarily to handle closing the decompressed streams.) Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 3181923 - Browse repository at this point
Copy the full SHA 3181923View commit details -
docker tarfile: report correct size of compressed layers
Tools like umoci will always compress layers, and in order to work around some *lovely* issues with DiffIDs, tarfile.GetBlob would always decompress them. However the BlobInfo returned from tarfile.GetBlob would incorrectly give the size of the *compressed* layer because the size caching code didn't actually check the layer size, resulting in "skopeo copy" failing whenever sourcing umoci images. As an aside, for some reason the oci: transport doesn't report errors when the size is wrong... Signed-off-by: Aleksa Sarai <asarai@suse.de> (Updated primarily to handle closing the decompressed stream.) Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6353fa5 - Browse repository at this point
Copy the full SHA 6353fa5View commit details