-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Enhancement]: Allow configuration of what files are copied into the container for docker compose #8847
Labels
Comments
wimdeblauwe
added a commit
to wimdeblauwe/testcontainers-java
that referenced
this issue
Jul 4, 2024
…containers#8847) This commit adds support for a `withFileCopyInclusions` method on `ComposeContainer` and `DockerComposeContainer`. It allows to specify what files or directories should be copied, instead of just copying all files. If not used, the current behaviour is preserved.
wimdeblauwe
added a commit
to wimdeblauwe/testcontainers-java
that referenced
this issue
Jul 5, 2024
…containers#8847) This commit adds support for a `withFileCopyInclusions` method on `ComposeContainer` and `DockerComposeContainer`. It allows to specify what files or directories should be copied, instead of just copying all files. If not used, the current behaviour is preserved.
wimdeblauwe
added a commit
to wimdeblauwe/testcontainers-java
that referenced
this issue
Jul 13, 2024
…containers#8847) This commit adds support for a `withFileCopyInclusions` method on `ComposeContainer` and `DockerComposeContainer`. It allows to specify what files or directories should be copied, instead of just copying all files. If not used, the current behaviour is preserved.
wimdeblauwe
added a commit
to wimdeblauwe/testcontainers-java
that referenced
this issue
Jul 13, 2024
wimdeblauwe
added a commit
to wimdeblauwe/testcontainers-java
that referenced
this issue
Jul 13, 2024
wimdeblauwe
added a commit
to wimdeblauwe/testcontainers-java
that referenced
this issue
Jul 13, 2024
Just a question: is there a reason, why all files of the folder where the compse file is located in, have to be copied per default? |
fokion
pushed a commit
to fokion/testcontainers-java
that referenced
this issue
Jan 18, 2025
This commit adds support for a `withCopyFilesInContainer` method on `ComposeContainer` and `DockerComposeContainer`. It allows to specify what files or directories should be copied, instead of just copying all files. If not used, the current behavior is preserved. Fixes testcontainers#8847 --------- Co-authored-by: Eddú Meléndez <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Module
Core
Proposal
The current docker compose support copies all files that are in the directory of the docker compose file into the container that runs the docker compose. This leads to Out Of Memory exceptions in case there are a lot of files in that directory (or subdirectories).
I would like to make it possible to restrict the files that are copied via an inclusion mechanism. I will open a PR with a possible implementation which we then further can discuss.
The text was updated successfully, but these errors were encountered: