nutritious-rocket-28038
08/28/2025, 4:05 AMfrom flytekit import ContainerTask, kwtypes, FlyteDirectory
produce_data = ContainerTask(
name="produce_data",
image="alpine:3.18",
command=["sh", "-c"],
arguments=[
# Important: write to the output path that Flyte provides
"mkdir -p /var/flyte/output/results && echo 'hello' > /var/flyte/output/results/hello.txt"
],
output_data_dir="/var/flyte/output", # :white_check_mark: ensures Flyte watches this dir
outputs=kwtypes(results=FlyteDirectory),
)
Do you guys have some working exemple of ContainerTask returing FlyteDirectory ?