Skip to content

Add ability to set command flags to Gcloud emulators#926

Merged
cristianrgreco merged 6 commits intotestcontainers:mainfrom
digital88:main
Mar 18, 2025
Merged

Add ability to set command flags to Gcloud emulators#926
cristianrgreco merged 6 commits intotestcontainers:mainfrom
digital88:main

Conversation

@digital88
Copy link
Copy Markdown
Contributor

@digital88 digital88 commented Mar 12, 2025

Closes #915

Added EmulatorFlagsManager class which encapsulates logic of adding arbitrary flags to command used to start gcloud containers:

gcloud beta emulators firestore start ...<flags>

Instead of hard-coding flags inside container cmd string, users can now add any flags they wish. Existing flags were preserved, existing 3rd party code should be working without changes.

Added tests for EmulatorFlagsManager.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 12, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 7b70104
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67d9402442c3df0008cd5642
😎 Deploy Preview https://deploy-preview-926--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 17, 2025
@cristianrgreco cristianrgreco changed the title feat(gloud) add ability to set cmd flags Add ability to set command flags to Gcloud emulators Mar 17, 2025
@cristianrgreco cristianrgreco merged commit 4b7b9d0 into testcontainers:main Mar 18, 2025
18 checks passed
vaernion pushed a commit to Arbeidstilsynet/brevgen2 that referenced this pull request Dec 3, 2025
….21.0

This PR contains the following updates:

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

---

### Release Notes

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

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

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

#### Changes

#### 🚀 Features

-   Add ability to set command flags to Gcloud emulators [@&#8203;digital88](https://github.com/digital88) ([#&#8203;926](testcontainers/testcontainers-node#926))
-   Update resource reaper version [@&#8203;loikg](https://github.com/loikg) ([#&#8203;933](testcontainers/testcontainers-node#933))
-   Add cosmos db emulator module [@&#8203;mrtnsch](https://github.com/mrtnsch) ([#&#8203;934](testcontainers/testcontainers-node#934))
-   Add ability to copy archives into containers [@&#8203;zacaj](https://github.com/zacaj) ([#&#8203;932](testcontainers/testcontainers-node#932))

#### 🐛 Bug Fixes

-   Do not replace user-provided Localstack `LAMBDA_DOCKER_FLAGS` [@&#8203;florian-nguyen](https://github.com/florian-nguyen) ([#&#8203;935](testcontainers/testcontainers-node#935))

#### 🧹 Maintenance

-   Upgrade linting libraries [@&#8203;prenaissance](https://github.com/prenaissance) ([#&#8203;931](testcontainers/testcontainers-node#931))

</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 PR is renamed to start with "rebase!".

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

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Related work items: #30372
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.

Add --database-mode=datastore-mode option to firestore emulator

2 participants