-
Notifications
You must be signed in to change notification settings - Fork 86
autodetect: add support for zip and rar archive type #141
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
autodetect: add support for zip and rar archive type #141
Conversation
|
ping @opencontainers/image-tools-maintainers any comments? |
|
I think you need to add |
|
And please rebase and modify. |
Signed-off-by: Ma Shimiao <[email protected]>
Signed-off-by: Ma Shimiao <[email protected]>
3515c80 to
c02cd0c
Compare
|
rebased |
c02cd0c to
01eed4b
Compare
|
ping @coolljt0725 @xiekeyang |
Signed-off-by: Ma Shimiao <[email protected]>
01eed4b to
0b12f31
Compare
|
This is not work for me. I debugged and guess it should be something wrong with but open a zip archive with vim, it shows like this I think that's why this can't work? Does this work for you ? or Am I missing something? |
|
I think that maybe because you didn't put oci-layout, blobs and index.json into the root of the archive. A valid archive of image should have those at the root of the archive, not nested within a top-level directory as busybox. |
|
It works for me: |
|
sorry, It seems something wrong with my zip archive, it works with another zip archive |
|
Can we avoid adding a new |
|
Letting TypeImage to handle different archive is a good option. But I think we have to do a lot changes to reach that. |
|
@Mashimiao ok. LGTM wait for other's opinion @opencontainers/image-tools-maintainers |
Signed-off-by: Ma Shimiao [email protected]