mammoth-quill-44336
03/19/2025, 1:37 PMechoing-account-76888
03/19/2025, 2:31 PMImageSpec
to copy file or directory into container /root
. Here you can copy the credential file into the container, then set GOOGLE_APPLICATION_CREDENTIALS
in env.
image_spec = ImageSpec(
name="image",
registry="localhost:30000",
copy=["credential.json"],
env={"GOOGLE_APPLICATION_CREDENTIALS": "/root/credential.json"}
)
@task(container_image=image_spec)
...
mammoth-quill-44336
03/19/2025, 2:34 PMdamp-lion-88352
03/19/2025, 2:54 PMmammoth-quill-44336
03/19/2025, 2:55 PMgentle-tomato-480
03/19/2025, 4:19 PMmammoth-quill-44336
03/19/2025, 4:20 PMmammoth-quill-44336
03/19/2025, 4:21 PMmammoth-quill-44336
03/19/2025, 4:21 PMgentle-tomato-480
03/19/2025, 4:23 PMgentle-tomato-480
03/19/2025, 4:27 PMmammoth-quill-44336
03/19/2025, 4:37 PMcareful-australia-19356
03/21/2025, 4:49 PMmammoth-quill-44336
03/21/2025, 4:49 PM