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

[DOCS] Using ImageSpec in ContainerTask #6095

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/user_guide/customizing_dependencies/raw_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ is `calculate_ellipse_area_shell`. This name has to be unique in the entire proj
`inputs` and `outputs` specify the interface for the task; thus it should be an ordered dictionary of typed input and
output variables.

The `image` field specifies the container image for the task, either as an image name or
an [ImageSpec](https://docs.flyte.org/en/latest/user_guide/customizing_dependencies/imagespec.html).
To access the file that is not included in the image, use `ImageSpec` to copy files or
directories into container `/root`.

[Cache](https://docs.flyte.org/en/latest/user_guide/development_lifecycle/caching.html) can be enabled in a `ContainerTask` by configuring the cache settings in the `TaskMetadata` in the `metadata` parameter.

```{literalinclude} /examples/customizing_dependencies/customizing_dependencies/raw_container.py
Expand Down
Loading