[Flytekit] Envd builder with extra copy commands #2774
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tracking issue
Related to #2715, after adding support for extra copy commands in the default builder, we also want to extend this support to the envd builder.
Why are the changes needed?
When creating images with ImageSpec on a remote cluster, we may need to copy additional files or directories required during the container build process. To address this, we aim to support extra copy commands in ImageSpec for copying files and directories into the container’s
/root
directory.What changes were proposed in this pull request?
copy
commands to be built by the envd builder.Example Usage:
input.txt
build_image.py
How was this patch tested?
plugins/flytekit-envd/tests/test_image_spec.py
to verify the correctness of the envd configuration and its ability to be built.Setup process
Screenshots
Screenshots of running
pyflyte run --remote build_image.py my_wf
.The entire building process is too lengthy; therefore, only the start and the end of the build process are displayed here.
Check all the applicable boxes
Related PRs
#2715
Docs link