-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
base
does no longer accept a tarball
#700
Comments
oci_image never accepted a tarball as the base, if it did though, probably because of crane we were running at the time. We won't be supporting tarballs as they are usually huge and not cache friendly. |
@thesayyn I agree that one shouldn't create tarballs as outputs but it might be necessary to support tarballs as inputs to support migrations to rules_oci. So this is about unpacking a tarball which already exists instead of creating a new one. So this doesn't make things worse as they already are today but instead paves the way to a better future with fewer tarballs. |
I agree with the sentiment here, however adding this feature back is not something i'd be warm to, i'd be much comfortable with an example showing use of regctl with a genrule to unpack a tarball into an oci-layout which is then used as the base. |
Or maybe providing an explicit |
@thesayyn which |
|
Something like genrule would work but genrules no longer support outputting a directory, so you'd have to create a custom rule. |
Thanks, I couldn't figure out the |
In v1,
base
was accepting a tarball. I assume this is the reason why it setsallow_single_file = True
. In v2, this fails with the following error:The corresponding code is
rules_oci/oci/private/image.sh
Lines 33 to 48 in c74c2d3
Could you detect if
base
is a tarball and extract it in this case?We use this feature to gradually migrate our large code base from
rules_docker
torules_oci
.The text was updated successfully, but these errors were encountered: