Skip to content

Conversation

@zacaj
Copy link
Contributor

@zacaj zacaj commented Mar 14, 2025

Adds copyArchiveToContainer and withCopyArchivesToContainer to mirror the existing copyArchiveFromContainer, allowing files to be copied from one container to another.

Builds on #923, since docker commits don't copy mounts, to allow complete duplication of a container

Would be nice eventually to have some kind of all-in-one duplicate() function on StoppedTestContainer..

Note: this is my first time making a github PR so hopefully I've done this right... Ran the linter and formatter, but many tests are failing for me even in the provided dev container, but they're also failing when I checkout main so I don't think it's related to my changes

@netlify
Copy link

netlify bot commented Mar 14, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 5ad5d12
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67d4b448b2e16a0008d2c5d4
😎 Deploy Preview https://deploy-preview-932--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cristianrgreco cristianrgreco changed the title add ability to copy archives into containers Add ability to copy archives into containers Mar 17, 2025
@cristianrgreco cristianrgreco merged commit 0890956 into testcontainers:main Mar 17, 2025
441 of 637 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor Backward compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants