-
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
docker_registry_image fails to exclude files listed in .dockerignore #280
Comments
This issue is stale because it has been open 60 days with no activity. |
Uhm, this issue has been marked as a target for 2.16.0, it shouldn’t even be marked as stale..? |
@mavogel some help? 😅 |
The issue here is that absolute paths are passed to the excludes matcher. I would create a PR but not being proficient in go is preventing me from fixing the associated unit test. The unit test currently does not really check the ignore behaviour because the file being modified in the test here was not even copied to the image. |
sure @moritzheiber feel free to help :) |
Community Note
Terraform (and docker Provider) Version
Provider version is
2.15.0
.Affected Resource(s)
docker_registry_image
Terraform Configuration Files
I've created a POC repository which allows for reproducing the bug: https://github.com/moritzheiber/terraform-docker-provider-dockerignore
Expected Behaviour
The files added to the
.dockerignore
file are not contained within the resulting image.Actual Behaviour
The files added to the
.dockerignore
file are contained within the resulting image.Steps to Reproduce
See the
README.md
in the POC repository.References
Also, taking a look at the test for this particular functionality, the
Dockerfile
used for it doesn't have a broad instruction for adding files into the image, which means the ignored file cannot possible ever show up in the image itself, leading me to believe the test itself is not sufficient in order to verify the given functionality.The text was updated successfully, but these errors were encountered: