Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Unpack layers in memory instead of extracting to disk first. #107

Merged
merged 3 commits into from
Oct 10, 2017

Conversation

dlorenc
Copy link
Contributor

@dlorenc dlorenc commented Oct 2, 2017

No description provided.

nkubala
nkubala previously approved these changes Oct 3, 2017
Copy link
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

Nice, LGTM apart from the one travis error. I think at some point we should consider having a mode to keep everything off disk, but since some images can be big it makes sense to keep writing them to disk as the default.

}
return imageManifest[0].Layers, nil
}

func unpackDockerSave(tarPath string, target string) error {
if _, ok := os.Stat(target); ok != nil {
os.MkdirAll(target, 0777)
os.MkdirAll(target, 0644)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, looks like you're getting permission errors on the test files now. I think you need to increase this to 666?

Copy link
Contributor Author

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

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

Should be RFAL.

@dlorenc dlorenc merged commit ee6af32 into GoogleContainerTools:master Oct 10, 2017
@dlorenc dlorenc deleted the mem branch October 10, 2017 21:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants