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

Commit images / duplicate containers / etc #884

Open
zacaj opened this issue Dec 19, 2024 · 3 comments
Open

Commit images / duplicate containers / etc #884

zacaj opened this issue Dec 19, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@zacaj
Copy link

zacaj commented Dec 19, 2024

I'm using testcontainers to spin up a postgres instance for testing against, but after every test I need to shut down the container, start up a new one, and then run all my migrations and seed scripts again. It seems like there should be a way to image the instance once I've run those so I can re-use it in future tests, but I don't see anything in the docs that'd allow this... or am I missing something? the ability to take an archive seemed like it'd work, but there doesn't seem to be any way to init a new instance using that archive

@cristianrgreco
Copy link
Collaborator

It looks like Docker now supports committing a container: https://docs.docker.com/reference/api/engine/sdk/examples/. This is something we should implement

@cristianrgreco cristianrgreco added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers and removed help wanted Extra attention is needed labels Jan 6, 2025
@papidb
Copy link

papidb commented Jan 19, 2025

Hi @cristianrgreco, Good day, is this something the team is looking to implement? If they are can I give it a try?

@cristianrgreco
Copy link
Collaborator

Hi @cristianrgreco, Good day, is this something the team is looking to implement? If they are can I give it a try?

Yes please, PR welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants