crooked-holiday-38139
05/07/2025, 1:53 PMcat: /var/inputs/input_file: No such file or directory
... which makes sense, the file isn't getting into the docker container. I look through the container_task.py source, and I can see that we bind a mount for the output, but I can't see how the inputs get in to the container, I had assumed that we'd mount two directories, one for inputs and one for outputs.
How do inputs get into the ContainerTask? Can a FlyteFile be given as an input to a container?freezing-airport-6809
freezing-airport-6809
crooked-holiday-38139
05/08/2025, 8:51 AMr"^\{\{\s*\.inputs\.(.*?)\s*\}\}$"
places a very particular restriction that input values must be the only thing in the command element because of the ^
and $
anchors which requires you to write your commands like:
command=[
"/bin/sh", "-c",
'"',
"echo",
"'",
"{{.inputs.input_string}}",
"'",
" | sed -r 's/Hello/Goodbye/g' > /var/outputs/output_file",
'"'
],
... rather than:
command=[
"/bin/sh -c echo '{{.inputs.input_string}}' | sed -r 's/Hello/Goodbye/g' > /var/outputs/output_file"
],
... I'll probably raise a pull request to see if we can relax this requirement.