Hi Friends, sorry if I'm double posting. I tried asking this over on
discuss.flyte.org but it looks like it crashed righter after I clicked the post button.
Is there a way to specify image binding rules for `ContainerTasks`s similar to what's described in the docs
here? I have a custom image that builds up an executable with several executable dependencies (e.g.
curl
,
go
commands, etc) and I want to be able to specify to flyte to use this image via the
--image
command when running/registering the workflow.
The task looks something like:
container_task = ContainerTask(
name="export_container",
input_data_dir="/var/inputs",
output_data_dir="/var/outputs",
inputs=kwtypes(name=str),
outputs=kwtypes(response=str),
image="{{image.ours.fqn}}:{{image.ours.version}}", # <---- here
command=[
"/bin/sh",
"-c",
"python -m my.module cmd {{.inputs.name}} > /var/outputs/response",
],
)
Thanks!