Skip to content

Add support for container commit#923

Merged
cristianrgreco merged 7 commits intotestcontainers:mainfrom
smcroskey:main
Mar 14, 2025
Merged

Add support for container commit#923
cristianrgreco merged 7 commits intotestcontainers:mainfrom
smcroskey:main

Conversation

@smcroskey
Copy link
Copy Markdown
Contributor

@smcroskey smcroskey commented Mar 12, 2025

Fixes #884

Adds support for committing a container to an image (docker container commit).

Unfortunately @types/dockerode don't expose the commit options so I've included the type in types.ts.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 12, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 5a4b78e
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67d3782015ad2e0008d623dd
😎 Deploy Preview https://deploy-preview-923--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 added enhancement New feature or request minor Backward compatible functionality labels Mar 12, 2025
@cristianrgreco
Copy link
Copy Markdown
Collaborator

cristianrgreco commented Mar 12, 2025

@smcroskey thanks for raising the PR! This feature will be very useful. Left a few comments, LMK if you have any Qs.

The lint is failing, you should be able to run npm run lint to resolve.

@cristianrgreco cristianrgreco changed the title feat: add support for container.commit() [#884] Add support for container commit Mar 12, 2025
@smcroskey smcroskey marked this pull request as ready for review March 12, 2025 23:33
@cristianrgreco
Copy link
Copy Markdown
Collaborator

@smcroskey thanks for making the changes! Just a few more nitpicks

@cristianrgreco
Copy link
Copy Markdown
Collaborator

@smcroskey thanks for the contribution!

@cristianrgreco cristianrgreco merged commit 3574498 into testcontainers:main Mar 14, 2025
462 of 464 checks passed
@smcroskey
Copy link
Copy Markdown
Contributor Author

Thank you for the prompt review(s) @cristianrgreco!

vaernion pushed a commit to Arbeidstilsynet/brevgen2 that referenced this pull request Dec 3, 2025
….20.0

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [testcontainers](https://github.com/testcontainers/testcontainers-node) | devDependencies | minor | [`10.18.0` -> `10.20.0`](https://renovatebot.com/diffs/npm/testcontainers/10.18.0/10.20.0) |

---

### Release Notes

<details>
<summary>testcontainers/testcontainers-node (testcontainers)</summary>

### [`v10.20.0`](https://github.com/testcontainers/testcontainers-node/releases/tag/v10.20.0)

[Compare Source](testcontainers/testcontainers-node@v10.19.0...v10.20.0)

#### Changes

#### 🚀 Features

-   Add support for container commit [@&#8203;smcroskey](https://github.com/smcroskey) ([#&#8203;923](testcontainers/testcontainers-node#923))

#### 🧹 Maintenance

-   Fix flaky healthcheck timeout test [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;930](testcontainers/testcontainers-node#930))
-   Fix flaky Selenium test [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;929](testcontainers/testcontainers-node#929))

### [`v10.19.0`](https://github.com/testcontainers/testcontainers-node/releases/tag/v10.19.0)

[Compare Source](testcontainers/testcontainers-node@v10.18.0...v10.19.0)

#### Changes

#### 🚀 Features

-   Add CockroachDB module [@&#8203;leourbina](https://github.com/leourbina) ([#&#8203;910](testcontainers/testcontainers-node#910))

#### 🐛 Bug Fixes

-   Fix lambda container is dropped by ryuk ([#&#8203;848](testcontainers/testcontainers-node#848)) [@&#8203;julienboulay](https://github.com/julienboulay) ([#&#8203;922](testcontainers/testcontainers-node#922))
-   Fix PostgreSQL container restart [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;914](testcontainers/testcontainers-node#914))

#### 🧹 Maintenance

-   Migrate from Jest to Vitest [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;921](testcontainers/testcontainers-node#921))
-   GHA workflow job names [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;920](testcontainers/testcontainers-node#920))
-   Optimise CI to reduce runners usage, caching NPM modules when needed [@&#8203;mdelapenya](https://github.com/mdelapenya) ([#&#8203;918](testcontainers/testcontainers-node#918))
-   Update docs to demonstrate specifying Qdrant version [@&#8203;Anush008](https://github.com/Anush008) ([#&#8203;917](testcontainers/testcontainers-node#917))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually on...
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.

Commit images / duplicate containers / etc

2 participants