-
Notifications
You must be signed in to change notification settings - Fork 191
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
inconsistent build behavior with docker_registry_image
resource
#293
Comments
Why is |
Related to #280, since the reproduction of it also exhibits the bug mentioned in this report. |
This issue is stale because it has been open 60 days with no activity. |
This is not fixed, and closed because it isn’t pinned. |
I've been hit by this too, building images with |
Just to add another use case affected by this issue. I'm using Terraform and This issue means that the Workaround for now: pin the |
Ran into this issue as well. Tried to solve it by activating BuildKit mode just to discover that it is not supported either (#265). By the modification times in this repo it looks like this provider is not actively maintained. If this is the case, then it is probably also not actively used. But what would then be a preferred way (aka industry standard) for building Docker images that would integrate well with Terraform? |
I just released a new version which should fix the permission issue: https://github.com/kreuzwerker/terraform-provider-docker/releases/tag/v2.18.0 @pwt @lesinigo @moritzheiber @archen @pspot2 buildkit support is also implemented since
We will try to align the implementations of those two resources in the future or even make them one resource (but this would be a major release, as it is a breaking change) |
Hi @archen Sorry for the long delay. Thanks for your work on this -- I can confirm that this fixes the issue for me. Now, it would also be nice if there were builds of the provider for Apple Silicon, to remove the requirement to produce them locally (e.g., using the very helpful: https://github.com/kreuzwerker/m1-terraform-provider-helper). |
@pwt what exactly do you mean? I just looked at https://registry.terraform.io/v1/providers/kreuzwerker/docker/versions and we are releasing |
Interesting. If I do
I receive error: Perhaps I just have some m1-provider cruft left around that's confusing matters. |
Community Note
Terraform (and docker Provider) Version
Affected Resource(s)
docker_registry_image
Terraform Configuration Files
https://github.com/archen/docker-provider-error
Debug Output
Expected Behaviour
The image should have been created and preserved the file permissions from the host. Both
docker build
from the CLI with the context path anddocker_image
resources are consistent with this expectation.Actual Behaviour
It appears as though the
docker_registry_image
strips the file permissions during handling of the context archive.Suspected code:
terraform-provider-docker/internal/provider/resource_docker_registry_image_funcs.go
Line 356 in 9123931
Steps to Reproduce
git clone https://github.com/archen/docker-provider-error cd docker-provider-error terraform init terraform apply -auto-approve
Important Factoids
NA
References
NA
The text was updated successfully, but these errors were encountered: