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

feat(import): add "copy" support for import #345

Merged
merged 1 commit into from Dec 14, 2022

Conversation

rchincha
Copy link
Contributor

Currently, "import:" directive only allows for temporarily mounting previously layers, and actual copying would have to be done via "run:" directive. But in cases where there is no shell in the current layer, there was no way to achieve this, greatly limiting usability for packaging golang binaries.

Adding support using "dest:" option under "import:" directive.

Signed-off-by: Ramkumar Chinchani rchincha@cisco.com

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rchincha
Copy link
Contributor Author

rchincha commented Dec 1, 2022

Don't merge this yet, only part 1/2 of the patchset

@rchincha rchincha force-pushed the import-copy branch 7 times, most recently from 731bb36 to 6cf881d Compare December 5, 2022 18:51
@rchincha rchincha changed the title feat(import): add "copy" support for import feat(import): add "copy" support for import - DON'T MERGE yet Dec 5, 2022
@rchincha rchincha force-pushed the import-copy branch 17 times, most recently from 945f04a to 0f418be Compare December 8, 2022 23:03
@rchincha rchincha changed the title feat(import): add "copy" support for import - DON'T MERGE yet feat(import): add "copy" support for import Dec 8, 2022
lib/dir.go Outdated Show resolved Hide resolved
lib/dir.go Outdated Show resolved Hide resolved
lib/file.go Show resolved Hide resolved
types/layer.go Outdated Show resolved Hide resolved
types/layer.go Outdated Show resolved Hide resolved
types/layer.go Outdated Show resolved Hide resolved
lib/dir.go Show resolved Hide resolved
lib/dir.go Show resolved Hide resolved
lib/file.go Outdated Show resolved Hide resolved
Currently, "import:" directive only allows for temporarily mounting
previously layers, and actual copying would have to be done via "run:"
directive. But in cases where there is no shell in the current layer,
there was no way to achieve this, greatly limiting usability for
packaging golang binaries.

Adding support using "dest:" option under "import:" directive.

Thanks @smoser for the review and fix.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
Copy link
Contributor

@hallyn hallyn left a comment

Choose a reason for hiding this comment

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

Thank you

@rchincha rchincha merged commit 7c03f4d into project-stacker:main Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants