acoustic-parrot-22802
08/26/2024, 11:09 AMaverage-finland-92144
08/26/2024, 2:59 PMacoustic-parrot-22802
08/26/2024, 6:50 PMaverage-finland-92144
08/26/2024, 6:51 PMacoustic-parrot-22802
08/27/2024, 1:17 AMaverage-finland-92144
08/27/2024, 10:20 AMdocker pull
? is it a private image/repo? bc then probably you'll need an ImagePullSecretacoustic-parrot-22802
08/28/2024, 9:18 AMacoustic-parrot-22802
08/28/2024, 9:18 AMacoustic-parrot-22802
08/28/2024, 9:19 AMacoustic-parrot-22802
08/28/2024, 9:19 AMaverage-finland-92144
08/28/2024, 10:51 AMbase_image="<http://ghcr.io/flyteorg/flytekit:py3.10-1.11.0|ghcr.io/flyteorg/flytekit:py3.10-1.11.0>"
acoustic-parrot-22802
08/28/2024, 10:57 AMacoustic-parrot-22802
08/29/2024, 8:29 AMacoustic-parrot-22802
08/29/2024, 8:29 AMacoustic-parrot-22802
08/29/2024, 12:53 PMaverage-finland-92144
08/29/2024, 3:29 PMacoustic-parrot-22802
08/29/2024, 4:24 PMacoustic-parrot-22802
08/29/2024, 4:25 PMacoustic-parrot-22802
08/29/2024, 4:33 PMacoustic-parrot-22802
08/29/2024, 4:34 PMaverage-finland-92144
08/29/2024, 4:40 PMbase_image
has to have flytekit installed. The default Flyte Docker image can serve as reference
Also, what you reference in the task config is only the ImageSpec object
So something like this
pandas_image_spec = ImageSpec(
base_image="europe-west4-docker.pkg.dev/pro-workflow-p-5389/compute/rc_log_parser1:latest", #it was missing the tag
#packages=["pandas", "numpy"], #uncomment to install packages
#python_version="3.9",
#apt_packages=["git"],
env={"Debug": "True"},
registry="europe-west4-docker.pkg.dev/pro-workflow-p-5389/compute",
)
...
@task(container_image="pandas_image_spec")
As long as you can docker pull what you set on `base_image`it should workacoustic-parrot-22802
08/29/2024, 6:15 PMaverage-finland-92144
08/29/2024, 8:52 PMflytekit
in the packages
that ImageSpec installsacoustic-parrot-22802
08/30/2024, 5:34 PMaverage-finland-92144
08/30/2024, 5:56 PM