https://flyte.org logo
#ask-the-community
Title
# ask-the-community
c

Cody Scandore

07/21/2023, 10:49 AM
I am running a
ContainerTask
in R, and executing with
pyflyte run --remote …
. While I’m able to run the example in the docs, I cannot pass in a modified R script. The documentation uses
calculate-ellipse-area.R
which already seems to be in the
<http://ghcr.io/flyteorg/rawcontainers-r:v2|ghcr.io/flyteorg/rawcontainers-r:v2>
. I have a file
my-r-script.R
in the same directory as my workflow, but it does not seem like it’s being packaged up and sent to the container. The error is..
Copy code
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.
[flyte-copilot-downloader] terminated with ExitCode 0.
[f9ac28595bbd64961881-n1-0] terminated with exit code (2). Reason [Error]. Message: 
Fatal error: cannot open file 'my-r-script.R': No such file or directory
.
[flyte-copilot-sidecar] terminated with ExitCode 0.
j

Jan Fiedler

07/21/2023, 11:05 AM
Yes to make this work you need to build your custom Docker img and copy your files into the image via
COPY . /root
. To use it in your workflow you can pass the
--image
flag on pyflyte run.
c

Cody Scandore

07/21/2023, 11:15 AM
I see, thank you Jan.