Hi Friends, sorry if I'm double posting. I tried a...
# flyte-support
l
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:
Copy code
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!
f
Interesting question, maybe it’s missing, as we assume it is known
l
When you say it's missing, what do you mean?
l
Ah. Got it.
151 Views