Skip to content

Support compressed source images ("http://domain/image.qcow2.gz") #809

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

Closed
sergelogvinov opened this issue Apr 20, 2022 · 6 comments · Fixed by #1439
Closed

Support compressed source images ("http://domain/image.qcow2.gz") #809

sergelogvinov opened this issue Apr 20, 2022 · 6 comments · Fixed by #1439
Labels
enhancement New feature or request

Comments

@sergelogvinov
Copy link

Description

Currently you can use only raw source images

images:
- location: "http://domain/image.qcow2"
  arch: "x86_64"
  digest: "sha512:123123"

Sometimes OS distributive does not have unarchived images on the website. It will be nice to have such capabilities to use archived source images.

@AkihiroSuda
Copy link
Member

What is "archived source images"?

@sergelogvinov
Copy link
Author

What is "archived source images"?

Fo example: the source image gzipped or used another archive algorithm.

like this:

- location: "http://domain/image.qcow2.gz"

@AkihiroSuda AkihiroSuda added enhancement New feature or request and removed status/more-info-needed labels Apr 20, 2022
@AkihiroSuda AkihiroSuda changed the title Support archived source images Support archived source images ("http://domain/image.qcow2.gz") Apr 20, 2022
@afbjorklund
Copy link
Member

That is normally called compressed images (like .gz or .xz), where "archive" is normally reserved for something like .tar or .zip

Being able to automatically decompress would be a nice feature

@sergelogvinov
Copy link
Author

What do you think about https://github.com/mholt/archiver module.

the workflow will be:

  • download file and check checksum
  • decompress the file if extension of file is "known compression format"
  • pass to next steps

@sergelogvinov sergelogvinov changed the title Support archived source images ("http://domain/image.qcow2.gz") Support compressed source images ("http://domain/image.qcow2.gz") Apr 21, 2022
@AkihiroSuda
Copy link
Member

What do you think about https://github.com/mholt/archiver module.

Looks overloaded.
Having a built-in support for gzip and maybe zstd is fine, but I'd prefer to use os/exec for other minor formats.

@afbjorklund
Copy link
Member

Flatcar still uses the legacy .bz2 format, as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants