Closed wrussell1999 closed 4 months ago
containerImage
is only used by task runner, this is documented. If you want to change the container image without using task runner you should use the dockerOption.image
parameter.
Thanks for clarifying. I think it's a bit confusing to a new user as there's multiple options to do the same sort of thing.
By default, runner is set to DOCKER
. It can also be set to PROCESS
. If you want to change the image, despite being set to Docker, you need to use the docker
property. If you specify it as a taskRunner
(which can also be io.kestra.plugin.scripts.runner.docker.Docker
or io.kestra.plugin.core.runner.Process
) rather than a runner
, then you use containerImage
. As far as I can tell, these are achieving the same thing (other than taskRunner has more than 2 runners)?
Seems like two ways to do the same thing, but maybe I'm misunderstanding how it works behind the scenes. Is the plan to deprecate runner
once taskRunner
comes out of beta? If there is a reason to use one over the other, I will clarify in the docs.
Yes, there are two ways to do the same thing:
As multiple task runner will be container based, we decided to move the image configuration out of the task runner configuration so it's easy to switch for ex from the Docker task runner to the Kubernetes one.
Maybe the documentation can be improved.
Task Runner is now used by default and the old runner
property is now deprecated and null by default.
This was done in https://github.com/kestra-io/plugin-scripts/pull/153
Closing this one.
Expected Behavior
When executing a flow using
io.kestra.plugin.scripts.python.Commands
, andcontainerImage
set toghcr.io/kestra-io/pydata:latest
, pandas should be included.Actual Behaviour
When executing the flow, it errors as it can't find
pandas
. This suggests thatcontainerImage
is not working aspydata
includespandas
.This works if you explicitly set the task runner to docker despite being set to docker by default.
If taskRunner needs to be set, an error should be specified / documentation updated to clear this up.
Steps To Reproduce
No response
Environment Information
Example flow
This works:
This also works:
This causes it to error becauses
pandas
can't be found (containerImage
used instead):