You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for raising a detailed issue @JonJam, I can also reproduce it.
Looks like the dockerignore function from @balena/dockerignore works correctly by adding the correct rule, but the callback from tar.pack does not give the full path (example7/nested/file.txt), only the enclosing dir (example7/nested) which does not result in a match.
Expected Behaviour
When using a
.dockerfile
as follows:The above directories and files should be included in the build context.
Actual Behaviour
example4/nested
directory andexample5/example5.txt
are missingSteps to Reproduce
Define this test in checkout of repo:
Update
.dockerignore
intestcontainers-node-main/packages/testcontainers/fixtures/docker/docker-with-dockerignore/.dockerignore
with:The test will fail with:
Debug notes
It seems like
tar.pack
is the issue, as it doesn't go into subdirectories:The text was updated successfully, but these errors were encountered: