metal-stack / metal-hammer

metal-hammer is used to boot bare metal servers with ipxe and the metal-stack kernel
GNU Affero General Public License v3.0
41 stars 6 forks source link

Speed up installation by stream decompressing image while downloading #51

Open majst01 opened 3 years ago

majst01 commented 3 years ago

A viable approach would be to store the images in a OCI compatible registry as artifacts. With this approach we must not store 2 files (image and md5sum), and pulling/decompression can be done in parallel.

There is a golang client library available at: https://oras.land/client_libraries/go/

A sample implementation can also be found here: https://github.com/AkihiroSuda/apt-transport-oci/blob/master/pkg/method/method.go