Skip to content

Commit

Permalink
docs: docs of using ImageSpec in ContainerTask
Browse files Browse the repository at this point in the history
Signed-off-by: machichima <[email protected]>
  • Loading branch information
machichima committed Dec 7, 2024
1 parent 9028375 commit c43ea77
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit c43ea77

Please sign in to comment.