Jan Fiedler
07/26/2023, 8:03 AMpandas_image_spec = ImageSpec(
base_image="<http://ghcr.io/flyteorg/flytekit:py3.8-1.6.2|ghcr.io/flyteorg/flytekit:py3.8-1.6.2>",
packages=["pandas", "numpy"],
python_version="3.9",
apt_packages=["git"],
env={"Debug": "True"},
registry="<http://account_id.dkr.ecr.eu-central-1.amazonaws.com/jansdataplane-dev-playground-base|account_id.dkr.ecr.eu-central-1.amazonaws.com/jansdataplane-dev-playground-base>",
)
pyflyte build img_spec_test.py wf
is giving me an error someting like this:
Post "<https://account_id.dkr.ecr.eu-central-1.amazonaws.com/v2/jansdataplane-dev-playground-base/flytekit/blobs/uploads/>": EOF
Is ECR supported on this one?Broder Peters
07/26/2023, 8:21 AMJan Fiedler
07/26/2023, 8:25 AMaws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin <http://account_id.dkr.ecr.eu-central-1.amazonaws.com|account_id.dkr.ecr.eu-central-1.amazonaws.com>
Broder Peters
07/26/2023, 8:26 AMJan Fiedler
07/26/2023, 8:30 AMFailed with Unknown Exception <class 'Exception'> Reason: failed to run command envd build --path /var/folders/k6/br3z_w6d797cf9rwtztxzzb80000gn/T/flyte-wo8bfqlu/sandbox/local_flytekit/18cc84e1681acb1ea991921f5331e3e0 --platform linux/amd64 --output type=image,name=<http://account_id.dkr.ecr.eu-central-1.amazonaws.com/jansdataplane-dev-playground-base/flytekit:ezWA_dNcNWhWrZxn7xhxMg..,push=true|account_id.dkr.ecr.eu-central-1.amazonaws.com/jansdataplane-dev-playground-base/flytekit:ezWA_dNcNWhWrZxn7xhxMg..,push=true> with error b'error: failed to do request: Post "<https://account_id.dkr.ecr.eu-central-1.amazonaws.com/v2/jansdataplane-dev-playground-base/flytekit/blobs/uploads/>": EOF\n'
failed to run command envd build --path /var/folders/k6/br3z_w6d797cf9rwtztxzzb80000gn/T/flyte-wo8bfqlu/sandbox/local_flytekit/18cc84e1681acb1ea991921f5331e3e0 --platform linux/amd64 --output type=image,name=<http://account_id.dkr.ecr.eu-central-1.amazonaws.com/jansdataplane-dev-playground-base/flytekit:ezWA_dNcNWhWrZxn7xhxMg..,push=true|account_id.dkr.ecr.eu-central-1.amazonaws.com/jansdataplane-dev-playground-base/flytekit:ezWA_dNcNWhWrZxn7xhxMg..,push=true> with error b'error: failed to do request: Post "<https://account_id.dkr.ecr.eu-central-1.amazonaws.com/v2/jansdataplane-dev-playground-base/flytekit/blobs/uploads/>": EOF\n'
Broder Peters
07/26/2023, 9:21 AMKevin Su
07/26/2023, 5:47 PMRichard Li
07/26/2023, 5:56 PMJan Fiedler
07/26/2023, 6:29 PMKeming Yang
07/27/2023, 1:12 AM$HOME/.docker/config.json
envd build
directly to see the full error messageJan Fiedler
07/27/2023, 8:30 AM{
"auths": {
"<http://account_id.dkr.ecr.eu-central-1.amazonaws.com|account_id.dkr.ecr.eu-central-1.amazonaws.com>": {},,
"<http://azuredevplaygroundkaniko.azurecr.io|azuredevplaygroundkaniko.azurecr.io>": {},
"<https://index.docker.io/v1/>": {}
},
"credsStore": "desktop"
}
envd build did not came up with additional errors. Its not super urgent for me atm but would be nice if this kind of use case would be documented in the futureKeming Yang
07/27/2023, 8:35 AMJan Fiedler
07/27/2023, 8:56 AMpandas_image_spec = ImageSpec(
base_image="ghcr.io/flyteorg/flytekit:py3.8-1.6.2",
packages=["pandas", "numpy"],
python_version="3.9",
apt_packages=["git"],
env={"Debug": "True"},
registry="account_id.dkr.ecr.eu-central-1.amazonaws.com",
)
pyflyte build expects a repository named flytekit
in ecr: <http://account_id.dkr.ecr.eu-central-1.amazonaws.com/flytekit|account_id.dkr.ecr.eu-central-1.amazonaws.com/flytekit>
and pushes it there.
Would be cool to choose the repository name myself and not use flytekit
all the timeKevin Su
07/27/2023, 11:13 PMImageSpec(name=<repository name>)