Replies: 2 comments
|
Hi @csa777 do you have a code snippet of what you mean? I'm having a trouble visualizing your setup. |
0 replies
|
Maybe you want to first download the file from container A and then copy it into container B? Note: I converted this issue into a discussion since it is a general question. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
My use case: I have a containerized service that runs in a container. This service has several integration tests that make use of test containers. Some of these containers need to be able to read a file before starting so in the initialization of the GenericContainer I would use
withCopyFileToContainer(MountableFile.forClassPathResource(...))to copy a file from the container in which the tests run to the test container, but this does not work. The file is not being copied. I assumewithCopyFileToContaineronly works if it is being invoked on the host.All reactions