Skip to content
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

Get files inside a running container #430

Closed
HofmeisterAn opened this issue Mar 4, 2022 · 0 comments
Closed

Get files inside a running container #430

HofmeisterAn opened this issue Mar 4, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@HofmeisterAn
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Get files inside a running container without binding a file share.

Describe the solution you'd like
GetArchiveFromContainerAsync

Describe alternatives you've considered
-

Additional context
It should be an equivalent to:
https://github.com/HofmeisterAn/dotnet-testcontainers/blob/f25ed8705fa72c9d03eb185c41bd783db0fbb908/src/DotNet.Testcontainers/Containers/IDockerContainer.cs#L141
https://github.com/HofmeisterAn/dotnet-testcontainers/blob/f25ed8705fa72c9d03eb185c41bd783db0fbb908/src/DotNet.Testcontainers/Clients/TestcontainersClient.cs#L147

E.g. something like ReadFileAsync. Extract the archive from GetArchiveFromContainerAsync to the host.

@HofmeisterAn HofmeisterAn added the enhancement New feature or request label Mar 4, 2022
@HofmeisterAn HofmeisterAn added this to the 1.6.0 milestone Mar 4, 2022
s-rech referenced this issue in s-rech/dotnet-testcontainers May 28, 2022
…unction: CopyFileFromContainerAsync'

{Implemented CopyFileFromContainerAsync to get files from inside a running container.}
s-rech referenced this issue in s-rech/dotnet-testcontainers May 28, 2022
…unction: CopyFileFromContainerAsync'

{Implemented CopyFileFromContainerAsync to get files from inside a running container.}
HofmeisterAn pushed a commit that referenced this issue May 31, 2022
…yFileFromContainerAsync'

{Add CopyFileFromContainerAsync to get files from a running container.}
HofmeisterAn added a commit that referenced this issue May 31, 2022
…leFromContainerAsync'

{Rename CopyFileFromContainerAsync to ReadFileAsync, reduce complexity.}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant