You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with the documentation of Docker.Run tasks. In the current documentation is explained, how to mount a directory from the host to the running docker container using the volumes property. In another issue, I found an information, that a Docker.Run task behaves like running on the host system, even if Kestra is running in a docker container itself.
Howewer, I wonder how to pass an output file of a previous task to the docker container of the Docker.Run task? I have the following scenario:
A task (e.g. http.Download) produces an output file
The next task (a Docker.Run) task should work with the previously created file; I would register it as input file
From now on, I see two options: Either mount the local working directory (using $(PWD) ) to the Docker.Run task, or mount the whole output file to the Docker.Run task
I tested both, but no one of these options works. If I mount the directory of my host system, everything works fine.
Am I missing something here? Or is this not possible at all using a Docker.Run task? I'd be glad if the documentation could be enhanced for this topic.
The text was updated successfully, but these errors were encountered:
If I register the URI of the previous task as inputFile in the Docker.Run task, this file seems to be available in the docker command. If I remove the second command (-o test.html) everything works fine. With the second command including, the docker container fails, if I put all commands in one line, the docker container fails.
Also, other docker containers don't work this way, they seem to be unable to read from the kestra internal URI.
Description
I have an issue with the documentation of Docker.Run tasks. In the current documentation is explained, how to mount a directory from the host to the running docker container using the volumes property. In another issue, I found an information, that a Docker.Run task behaves like running on the host system, even if Kestra is running in a docker container itself.
Howewer, I wonder how to pass an output file of a previous task to the docker container of the Docker.Run task? I have the following scenario:
I tested both, but no one of these options works. If I mount the directory of my host system, everything works fine.
Am I missing something here? Or is this not possible at all using a Docker.Run task? I'd be glad if the documentation could be enhanced for this topic.
The text was updated successfully, but these errors were encountered: