Florent VanDeMoortele
05/15/2023, 8:38 AMTaylor Curran
05/15/2023, 3:01 PMFlorent VanDeMoortele
05/15/2023, 4:06 PM<http://eu.gcr.io|eu.gcr.io>
for GCP) but the log indicates an other URL
docker.errors.APIError: 500 Server Error for <http+docker://localhost/v1.42/auth>: Internal Server Error ("Get "<https://eu.gcr.io/v2/>": unauthorized: Not Authorized.")
I create a block with docker-registry-credentials
to store my credentials.Taylor Curran
05/15/2023, 4:18 PMFlorent VanDeMoortele
05/15/2023, 5:01 PMbuild:
- prefect_docker.projects.steps.build_docker_image:
requires: prefect-docker
image_name: repo-name/image-name
tag: dev
dockerfile: Dockerfile
push: True
credentials: "{{ prefect.blocks.docker-registry-credentials.dev-registry }}"
In the build section, not in the push, because prefect_docker
doesn't have a push method, all is done in the build. But I'm not sure : I have to use prefect_docker
to build and then prefect_gcp
to push? Or all is done by prefect_docker
. Maybe I misunderstandFlorent VanDeMoortele
05/15/2023, 5:08 PMprefect_docker
upload my image only on Docker registry? So I have to pass the push parameter to False and to upload after with prefect_gcp
?Florent VanDeMoortele
05/15/2023, 5:14 PMprefect_gcp
push the content of the working directory to GCS and not a Docker image. Or I have to create a temporary folder with my Docker image inside it and then push this folder to GCS? I'm not sure, I think it exists an easier way that I've not already foundTaylor Curran
05/15/2023, 8:07 PMTaylor Curran
05/15/2023, 8:07 PMFlorent VanDeMoortele
05/25/2023, 8:28 AM