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
.WithResourceMapping() Allows us to send files to the container. When there are many files to be sent calling StartAsync() on the container can timeout. Probably as files are sent in parallel
To allow sending of archives that are then automatically unzipped in the container. Or this could be implemented as providing a list of files to the container builder so that the builder creates the archive and then unzips into a specified target directory.
To create a Docker image, a lot of similar code is necessary. I think we can reuse and restructure a lot. This part implements ITarArchive to create a tarball of the Docker image build context, which includes all files and subdirectories of a directory.
I believe we need to overload CopyFileAsync with a source and target paths and determine whether the source path is a directory or not. Based on the FileSystemInfo, we can construct the tarball and pass it to the Docker endpoint.
Problem
.WithResourceMapping()
Allows us to send files to the container. When there are many files to be sent callingStartAsync()
on the container can timeout. Probably as files are sent in paralleltestcontainers-dotnet/src/Testcontainers/Clients/TestcontainersClient.cs
Lines 294 to 298 in 6688b92
Solution
To allow sending of archives that are then automatically unzipped in the container. Or this could be implemented as providing a list of files to the container builder so that the builder creates the archive and then unzips into a specified target directory.
testcontainers-dotnet/src/Testcontainers/Clients/TestcontainersClient.cs
Lines 166 to 206 in 6688b92
Benefit
When using sqitch for managing changes to database schemas the schema repo can grow very large resulting in many files needing to be moved.
Alternatives
Using volume mounts which is not advised.
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered: