-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to get the docker build log output from awsx.ecr.Image ? #1401
Comments
Usually in Docker Desktop I can see build logs there... But for some reason the builds that Pulumi/awsx.ecr is doing don't allow that The successful build is one I ran manually. If I click on that I can see lots of details about the build, including a logs tab. The ones with |
Hi @anentropic thank you for reporting this problem. https://www.pulumi.com/registry/packages/docker/api-docs/image/ has some I have tried to reproduce this and I get close to reproducing it if I edit my Dockerfile to intentionally fail. For example, if I inject an error in ts-ecr-simple:
Pulumi reports |
Digging a little deeper here, the docker.Image resource is using buildkit to build the image. But there might be a problem with log processing code where some of the information surfaced by buildkit is not being propagated to the user as expected. I have filed pulumi/pulumi-docker#1268 to investigate if this is the case. |
Thank you for looking into it! I note that the linked docs say:
I will also experiment with using that... it's not as straightforward as |
Yes unfortunately you cannot migrate the awsx.ecr.Image resource to the more modern Docker Build provider, this would require a (potentially breaking) change to this repository which our team needs to consider separately. |
FWIW using the recipe here: https://www.pulumi.com/registry/packages/docker-build/ That docker build completes successfully, unlike the But the nice thing about this (instead of missing digest error) |
Related: #1349 |
one less-nice thing about the it has a so I had to use this (in Python) to strip the digest: lambda_image_uri = lambda_image.ref.apply(lambda ref: ref.partition("@")[0]) I was then able to pass this as |
Hello!
Issue details
I am running
pulumi up --verbose=7
It fails with:
I execute the same
docker build
outside of Pulumi on my machine then the build succeeds.My problem is I can't work out how to get more details about what the Pulumi resource is doing differently, or what the actual error returned from that command was.
I didn't see any difference in the verbosity of output by adding
--verbose=7
Is there a build log somewhere?
It'd be great if it just showed the actual output.
Affected area/feature
awsx.ecr.Image
Docker buildsThe text was updated successfully, but these errors were encountered: