containerd / overlaybd

Overlaybd: a block based remote image format. The storage backend of containerd/accelerated-container-image.
Apache License 2.0
260 stars 58 forks source link

support stdin as source for ZFile compression #310

Closed BigVan closed 10 months ago

BigVan commented 10 months ago

What this PR does / why we need it: Currently, overlaybd-zfile cli only supports local files as a source. This PR will support STDIN as a source for overlaybd-zfile cli. (eg. cat $file | ./overlaybd-file $out) Moreover, decompression can't use stdin or pipe as a source since the ZFile index is saved at the end of the file

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Please check the following list: