Skip to content

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

Merged
rchincha merged 1 commit intoproject-stacker:mainfrom
rchincha:import-copy
Dec 14, 2022
Merged

feat(import): add "copy" support for import#345
rchincha merged 1 commit intoproject-stacker:mainfrom
rchincha:import-copy

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
@rchincha rchincha force-pushed the import-copy branch 5 times, most recently from d4489b1 to 729ccbc Compare December 13, 2022 22:13
@rchincha rchincha added this to the v0.40.1 milestone Dec 13, 2022
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.

2 participants

Comments