millions-librarian-58501
01/16/2023, 7:50 AMflytectl demo start
)
My workflow was successfully run on local (pyflyte run cifar10.py wf
)
But my workflow needs torch
packages, so I built docker image with Dockerfile like below:
FROM python:3.9-slim-buster
RUN python -m pip install torch torchvision
RUN python -m pip install flytekit pandas numpy awscli
I pushed the image to dockerhub, it can be accessed publicly.
And I submit flyte workflow with pyflyte
cli
pyflyte run --remote --image {username}/flyte:0.0.4 cifar10.py wf
But it doesn’t work on remote (sandbox). How can I do?cool-lifeguard-49380
01/16/2023, 8:19 AMkubectl run -i --tty --rm test --pod-running-timeout=20m0s --image={username}/flyte:0.0.4 --restart=Never -- bash
If this pod starts and gives you a shell, kubernetes can pull the image. If this doesn’t start, can you please post the events at the bottom of kubectl describe pod test
?millions-librarian-58501
01/16/2023, 8:21 AMcool-lifeguard-49380
01/16/2023, 8:22 AMmillions-librarian-58501
01/16/2023, 8:23 AMmillions-librarian-58501
01/16/2023, 8:23 AMglamorous-carpet-83516
01/16/2023, 10:15 AMWORKDIR
WORKDIR /tmp
COPY python_file /tmp
glamorous-carpet-83516
01/16/2023, 10:15 AMmillions-librarian-58501
01/17/2023, 2:28 AMtrain.py
) to docker image, i run workflow with pyflyte run --remote --image {image_name} train.py wf
. It seems that the change of file (train.py
) affected without rebuild the image. Is it intended?tall-lock-23197
pyflyte run
does fast registration. So you need not include code in your Docker image.