echoing-alarm-77599
02/22/2024, 1:24 PMtall-lock-23197
ShellTask
?echoing-alarm-77599
02/23/2024, 7:28 AMechoing-alarm-77599
02/23/2024, 7:36 AMechoing-alarm-77599
02/23/2024, 7:43 AMtall-lock-23197
echoing-alarm-77599
02/26/2024, 10:10 AMechoing-alarm-77599
02/27/2024, 1:01 PMtall-lock-23197
FlyteFile
to your container task. example:
ct = ContainerTask(
name="sed_task",
input_data_dir="/var/inputs",
output_data_dir="/var/outputs",
inputs=kwtypes(infile=FlyteFile),
outputs=kwtypes(out=FlyteFile),
image="alpine",
command=[
"/bin/sh",
"-c",
"sed 's/o/a/g' /var/inputs/infile > /var/outputs/out",
],
)
echoing-alarm-77599
02/28/2024, 11:09 AMechoing-alarm-77599
02/28/2024, 11:17 AMtall-lock-23197
infile
and out
. that's where the files will be available. here's an example you can refer to: https://gist.github.com/pryce-turner/0a67f86febdc812c9a2a9e739c22eecaechoing-alarm-77599
02/29/2024, 10:34 AMtall-lock-23197
infile
and that's how you should access it in the command. have you seen the example i shared here?tall-lock-23197
echoing-alarm-77599
02/29/2024, 12:17 PMtall-lock-23197
echoing-alarm-77599
02/29/2024, 3:03 PMtall-lock-23197