Skip to content
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

Unpack all image and not just the last layer #27

Merged
merged 2 commits into from
Nov 24, 2020
Merged

Unpack all image and not just the last layer #27

merged 2 commits into from
Nov 24, 2020

Conversation

gianarb
Copy link
Contributor

@gianarb gianarb commented Nov 24, 2020

The go program we use to get binaries from a docker image was unpacking
only the last layer. This is not required and in order to have a more
generic approach and fewest requirement the program now unpack all the
image

@gianarb gianarb added the ready-to-merge Signal to Mergify to merge the PR. label Nov 24, 2020
@gianarb gianarb requested a review from mmlb November 24, 2020 16:11
@gianarb gianarb removed the request for review from gauravgahlot November 24, 2020 16:12
The go program we use to get binaries from a docker image was unpacking
only the last layer. This is not required and it order to have a more
generic approach and fewest requirement the program now unpack all the
image

Signed-off-by: Gianluca Arbezzano <[email protected]>
if err != nil {
return err
}
err = tar.Untar(src, layerTar)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really good enough? This won't correctly handle whiteout files in the layers. 🤔 but I guess thats fine since presumably CMD won't point to a deleted file.

@mergify mergify bot merged commit 2db68f0 into tinkerbell:master Nov 24, 2020
ttwd80 pushed a commit to ttwd80/tinkerbell-playground that referenced this pull request Sep 7, 2024
The go program we use to get binaries from a docker image was unpacking
only the last layer. This is not required and in order to have a more
generic approach and fewest requirement the program now unpack all the
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants