Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
bump(deps): update dependency testcontainers to ^9.8.0 (#119)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[testcontainers](https://togithub.com/testcontainers/testcontainers-node)
| [`^9.1.3` ->
`^9.8.0`](https://renovatebot.com/diffs/npm/testcontainers/9.1.3/9.8.0)
|
[![age](https://badges.renovateapi.com/packages/npm/testcontainers/9.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/testcontainers/9.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/testcontainers/9.8.0/compatibility-slim/9.1.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/testcontainers/9.8.0/confidence-slim/9.1.3)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v9.8.0`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.8.0)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.7.0...v9.8.0)

#### Changes

#### 🚀 Features

- Add support for Testcontainers Host
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;564](https://togithub.com/testcontainers/testcontainers-node/issues/564))

#### 🐛 Bug Fixes

- Fix rootless socket location for MacOS on Docker Desktop
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;568](https://togithub.com/testcontainers/testcontainers-node/issues/568))
- Revert "Set host port to empty string
([#&#8203;550](https://togithub.com/testcontainers/testcontainers-node/issues/550))"
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;569](https://togithub.com/testcontainers/testcontainers-node/issues/569))

#### 🧹 Maintenance

- General refactoring
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;566](https://togithub.com/testcontainers/testcontainers-node/issues/566))
- Extract Docker client strategies to own modules
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;561](https://togithub.com/testcontainers/testcontainers-node/issues/561))
- Supported container runtimes tidy up
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;560](https://togithub.com/testcontainers/testcontainers-node/issues/560))

###
[`v9.7.0`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.7.0)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.6.0...v9.7.0)

#### Changes

#### 🚀 Features

- Add withLogConsumer + general logging improvements
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;559](https://togithub.com/testcontainers/testcontainers-node/issues/559))

#### 🧹 Maintenance

- Update podman docs for MacOS
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;557](https://togithub.com/testcontainers/testcontainers-node/issues/557))
- Unpin podman version
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;555](https://togithub.com/testcontainers/testcontainers-node/issues/555))
- Update ryuk 0.3.4->0.4.0
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;552](https://togithub.com/testcontainers/testcontainers-node/issues/552))
- Set stricter CI runner and module versions
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;548](https://togithub.com/testcontainers/testcontainers-node/issues/548))
- Refactor mocks such that ts-ignore not required
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;547](https://togithub.com/testcontainers/testcontainers-node/issues/547))
- Set host port to empty string
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;550](https://togithub.com/testcontainers/testcontainers-node/issues/550))
- Update minor/patch dependencies
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;551](https://togithub.com/testcontainers/testcontainers-node/issues/551))
- Update supported container runtimes doc to add Podman/MacOS
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;545](https://togithub.com/testcontainers/testcontainers-node/issues/545))
- Use newer Podman repo for CI pipelines
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;543](https://togithub.com/testcontainers/testcontainers-node/issues/543))
- Refactor startup timeout override
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;546](https://togithub.com/testcontainers/testcontainers-node/issues/546))

###
[`v9.6.0`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.6.0)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.5.0...v9.6.0)

#### Changes

#### 🚀 Features

- Make stop container idempotent
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;544](https://togithub.com/testcontainers/testcontainers-node/issues/544))
- Add limited Rancher Desktop pipeline
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;538](https://togithub.com/testcontainers/testcontainers-node/issues/538))
- Add limited Colima pipeline
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;537](https://togithub.com/testcontainers/testcontainers-node/issues/537))
- Implement composite wait strategy
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;532](https://togithub.com/testcontainers/testcontainers-node/issues/532))
- Better Podman support
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;515](https://togithub.com/testcontainers/testcontainers-node/issues/515))

#### 🧹 Maintenance

- Drop node 14 and add node 20 in CICD pipelines
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;540](https://togithub.com/testcontainers/testcontainers-node/issues/540))
- Renew certificates used by Kafka tests
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;542](https://togithub.com/testcontainers/testcontainers-node/issues/542))
- Document supported container runtimes
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;536](https://togithub.com/testcontainers/testcontainers-node/issues/536))

###
[`v9.5.0`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.5.0)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.4.0...v9.5.0)

#### 🚀 Features

- Add support for docker-compose pull policy
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;530](https://togithub.com/testcontainers/testcontainers-node/issues/530))
- Add support for Linux Docker Desktop rootless socket path
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;528](https://togithub.com/testcontainers/testcontainers-node/issues/528))

###
[`v9.4.0`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.4.0)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.3.0...v9.4.0)

#### Changes

#### 🚀 Features

- Add support for ShellWaitStrategy
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;522](https://togithub.com/testcontainers/testcontainers-node/issues/522))
- Add support for container lifecycle callbacks
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;510](https://togithub.com/testcontainers/testcontainers-node/issues/510)
and
[#&#8203;519](https://togithub.com/testcontainers/testcontainers-node/issues/519))
- Log docker-compose output
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;508](https://togithub.com/testcontainers/testcontainers-node/issues/508))

#### 🧹 Maintenance

- Add limits to Elasticsearch JVM memory
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;521](https://togithub.com/testcontainers/testcontainers-node/issues/521))
- Add logs info to configuration doc
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;518](https://togithub.com/testcontainers/testcontainers-node/issues/518))
- Update minor deps
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;516](https://togithub.com/testcontainers/testcontainers-node/issues/516))
- Refactor container create options in Generic Container
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;504](https://togithub.com/testcontainers/testcontainers-node/issues/504))
- Split GenericContainer tests to run faster
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;514](https://togithub.com/testcontainers/testcontainers-node/issues/514))
- Do not run CI for changes to docs
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;513](https://togithub.com/testcontainers/testcontainers-node/issues/513))
- Reorder docs language links
[@&#8203;leocross](https://togithub.com/leocross)
([#&#8203;511](https://togithub.com/testcontainers/testcontainers-node/issues/511))
- Reduce concurrent builds
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;506](https://togithub.com/testcontainers/testcontainers-node/issues/506))
- Remove private registry acceptance tests
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;505](https://togithub.com/testcontainers/testcontainers-node/issues/505))
- Refactor resolving host
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;503](https://togithub.com/testcontainers/testcontainers-node/issues/503))

###
[`v9.3.0`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.3.0)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.2.1...v9.3.0)

#### Changes

#### 🚀 Features

- Add support for setting CPU and memory quotas
[@&#8203;AlexPtnn](https://togithub.com/AlexPtnn)
([#&#8203;501](https://togithub.com/testcontainers/testcontainers-node/issues/501))

#### 🧹 Maintenance

- Document how to create a custom container
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;502](https://togithub.com/testcontainers/testcontainers-node/issues/502))

###
[`v9.2.1`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.2.1)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.2.0...v9.2.1)

#### Changes

-   No changes

###
[`v9.2.0`](https://togithub.com/testcontainers/testcontainers-node/releases/tag/v9.2.0)

[Compare
Source](https://togithub.com/testcontainers/testcontainers-node/compare/v9.1.3...v9.2.0)

#### Changes

#### 🚀 Features

- Add support for `DOCKER_HOST`
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;494](https://togithub.com/testcontainers/testcontainers-node/issues/494))
- Add support for TCC turbo mode
[@&#8203;HofmeisterAn](https://togithub.com/HofmeisterAn)
([#&#8203;482](https://togithub.com/testcontainers/testcontainers-node/issues/482))
- Add support for getting first mapped port
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;493](https://togithub.com/testcontainers/testcontainers-node/issues/493))
- Add support for rootless Docker
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;486](https://togithub.com/testcontainers/testcontainers-node/issues/486))
- Add support for specifying quantity in LogWaitStrategy
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;490](https://togithub.com/testcontainers/testcontainers-node/issues/490))
- Add `getConnectionUri` convenience function for Postgres
[@&#8203;nikeee](https://togithub.com/nikeee)
([#&#8203;472](https://togithub.com/testcontainers/testcontainers-node/issues/472))
- Add support for working dir
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;477](https://togithub.com/testcontainers/testcontainers-node/issues/477))
- Add support for `DOCKER_AUTH_CONFIG`
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;476](https://togithub.com/testcontainers/testcontainers-node/issues/476))
- Performance improvements
[@&#8203;henrinormak](https://togithub.com/henrinormak)
([#&#8203;453](https://togithub.com/testcontainers/testcontainers-node/issues/453))
- Do not start ryuk for a reusable container
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;458](https://togithub.com/testcontainers/testcontainers-node/issues/458))

#### 🐛 Bug Fixes

- Fix for handling Docker daemon ping response due to docker-modem
change [@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;497](https://togithub.com/testcontainers/testcontainers-node/issues/497))
- Fix container logs after restart flakiness
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;488](https://togithub.com/testcontainers/testcontainers-node/issues/488))
- Fix run in container flakiness
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;489](https://togithub.com/testcontainers/testcontainers-node/issues/489))
- Make sure container logs are output after container restart
[@&#8203;justinwyer](https://togithub.com/justinwyer)
([#&#8203;466](https://togithub.com/testcontainers/testcontainers-node/issues/466))
- Select Docker host port binding according to resolved host IP family
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;483](https://togithub.com/testcontainers/testcontainers-node/issues/483))
- Correctly parse Dockerfile images containing build args
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;474](https://togithub.com/testcontainers/testcontainers-node/issues/474))
- UnixSocketStrategy should not use docker host from configuration file
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;456](https://togithub.com/testcontainers/testcontainers-node/issues/456))

#### 🧹 Maintenance

- Add limited Podman CI workflow
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;494](https://togithub.com/testcontainers/testcontainers-node/issues/494))
- Do not return auth config when registry names partially match
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;484](https://togithub.com/testcontainers/testcontainers-node/issues/484))
- Resolve IndexServerAddress from Docker info
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;481](https://togithub.com/testcontainers/testcontainers-node/issues/481))
- Add Haskell language to docs
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;475](https://togithub.com/testcontainers/testcontainers-node/issues/475))
- Rename master branch to main
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;473](https://togithub.com/testcontainers/testcontainers-node/issues/473))
- Migrate README to mkdocs
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;470](https://togithub.com/testcontainers/testcontainers-node/issues/470))
- Add support for Codespaces
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;471](https://togithub.com/testcontainers/testcontainers-node/issues/471))
- Integrate SonarCloud
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;467](https://togithub.com/testcontainers/testcontainers-node/issues/467))
- Set default container labels
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;454](https://togithub.com/testcontainers/testcontainers-node/issues/454))
- Integrate code linting
[@&#8203;cristianrgreco](https://togithub.com/cristianrgreco)
([#&#8203;461](https://togithub.com/testcontainers/testcontainers-node/issues/461))
- Update ryuk and sshd version images
[@&#8203;eddumelendez](https://togithub.com/eddumelendez)
([#&#8203;414](https://togithub.com/testcontainers/testcontainers-node/issues/414))

</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 once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/BirthdayResearch/sticky).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS44LjMiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fuxing Loh <git@fuxing.dev>
  • Loading branch information
renovate[bot] and fuxingloh authored Jun 9, 2023
1 parent 234b414 commit 183c7ef
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/sticky-testcontainers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"preset": "@birthdayresearch/sticky-turbo-jest"
},
"dependencies": {
"testcontainers": "^9.1.3"
"testcontainers": "^9.8.0"
},
"devDependencies": {
"@birthdayresearch/sticky-turbo-jest": "workspace:*",
Expand Down
10 changes: 1 addition & 9 deletions packages/sticky-testcontainers/src/GenericContainer.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import { randomUUID } from 'node:crypto';

import { GenericContainer as AbstractGenericContainer } from 'testcontainers';
import { AbstractStartedContainer } from 'testcontainers/dist/modules/abstract-started-container';
import { AbstractStartedContainer, GenericContainer as AbstractGenericContainer } from 'testcontainers';

export type { StartedTestContainer } from 'testcontainers';

export class GenericContainer extends AbstractGenericContainer {
protected override name: string = `artemys-generic-container-${randomUUID()}`;

public override withName(name: string): this {
this.name = name;
return this;
}

constructor(image: string) {
super(image);
this.withName(`${image.replaceAll(/[^a-zA-Z0-9.-]/g, '-')}-${randomUUID()}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/sticky-testcontainers/src/LocalstackContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class LocalstackContainer extends GenericContainer {
public async start(): Promise<StartedLocalstackContainer> {
this.withStartupTimeout(120_000)
.withEnvironment({
MAIN_CONTAINER_NAME: this.name,
MAIN_CONTAINER_NAME: this.opts.name!,
DEBUG: '1',
DEFAULT_REGION: this.region,
})
Expand Down
45 changes: 20 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 183c7ef

Please sign in to comment.