From 4a7f4c25e26d4077492e48469139e7bfcdccdaa6 Mon Sep 17 00:00:00 2001 From: machichima <60069744+machichima@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:42:03 +0800 Subject: [PATCH] docs: docs of using ImageSpec in ContainerTask (#6095) Signed-off-by: machichima --- docs/user_guide/customizing_dependencies/raw_containers.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/user_guide/customizing_dependencies/raw_containers.md b/docs/user_guide/customizing_dependencies/raw_containers.md index fa404c8fbc..e047e03cc2 100644 --- a/docs/user_guide/customizing_dependencies/raw_containers.md +++ b/docs/user_guide/customizing_dependencies/raw_containers.md @@ -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