faint-activity-87590
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?faint-activity-87590
07/26/2023, 8:04 AMsome-grass-84903
07/26/2023, 8:21 AMfaint-activity-87590
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>
some-grass-84903
07/26/2023, 8:26 AMfaint-activity-87590
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'
some-grass-84903
07/26/2023, 9:21 AMglamorous-carpet-83516
07/26/2023, 5:47 PMglamorous-carpet-83516
07/26/2023, 5:49 PMlemon-gold-32767
07/26/2023, 5:56 PMfaint-activity-87590
07/26/2023, 6:29 PMfancy-musician-42621
07/27/2023, 1:12 AM$HOME/.docker/config.json
fancy-musician-42621
07/27/2023, 1:36 AMenvd build
directly to see the full error messagefaint-activity-87590
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 futurefancy-musician-42621
07/27/2023, 8:35 AMfaint-activity-87590
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 timeglamorous-carpet-83516
07/27/2023, 11:13 PMImageSpec(name=<repository name>)