fresh-pilot-44544
07/28/2023, 3:26 PMContainerTask(
name="my_container",
image="localhost:30000/my_container:latest",
input_data_dir="/input",
output_data_dir="/output",
inputs=kwtypes(
config_file=FlyteFile,
my_dir=FlyteDirectory,),
outputs=kwtypes(out=FlyteDirectory),
command=[
"python app.py --input_dir=/input/my_dir --config=/input/config_file"
]
)
I was expecting the /input
directory to contain a dir called my_dir
and a file called config_file
. However, it seems to be empty.
Can someone help me figure out how to mount data? Thanks 🙌loud-belgium-4006
07/29/2023, 10:40 PM@task(container_image=my_container:latest)
def my_task:
pass
fresh-pilot-44544
07/30/2023, 11:11 PMloud-belgium-4006
07/31/2023, 2:24 PMtar
the dir in question and then passing that archive to ContainerTask as a FlyteFile. It's more overhead but will get you there if you absolutely must use an arbitrary container. Lmk if you need any more help!