-
Notifications
You must be signed in to change notification settings - Fork 310
Feature: add DockerContainer.with_copy_file_to_container #665
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
Comments
I have found this remark in a PR : #392 (comment) |
In case anyone lands on this and wishes for copying (I use it to pass GCP creds to cloud sql proxy container, volume mount doesn't work on Linux), I use this rough workaround, the key point is to set restart policy on failure to allow it to fail as expected on missing creds file until the copy completes.
|
What are you trying to do?
Describe the intention of the enhancement.
I'd like to add a file to the container I'm starting, without using volumes.
Why should it be done this way?
Feature-parity with the Java version : https://java.testcontainers.org/features/files/#copying-files
Other references:
It you deem it interesting to implement, as I do, I can implement it.
The text was updated successfully, but these errors were encountered: