Skip to content

Conversation

@mdelapenya
Copy link
Member

What does this PR do?

  • feat: add new option for AlwaysPull image
  • feat: add new option for Lifecycle Hooks image
  • feat: add new option for log consumer config
  • feat: new option for attaching to networks by name
  • feat: add two more options (no-start and name)
  • feat: add one more option (image platform)

Why is it important?

More options to fully customise a container, from the modules side, or the Run function.

@mdelapenya mdelapenya requested a review from a team as a code owner May 5, 2025 10:30
@mdelapenya mdelapenya added the feature New functionality or new behaviors on the existing one label May 5, 2025
@mdelapenya mdelapenya self-assigned this May 5, 2025
@mdelapenya mdelapenya requested a review from stevenh May 5, 2025 10:30
@netlify
Copy link

netlify bot commented May 5, 2025

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit a07cee6
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/681c793245cbc70008323f9f
😎 Deploy Preview https://deploy-preview-3156--testcontainers-go.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.

Copy link
Contributor

@stevenh stevenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions, all in the same vain

// Beware that this option completely replaces the existing log consumer config,
// including the log consumers and the log production options,
// so it should be used with care.
func WithLogConsumerConfig(config *LogConsumerConfig) CustomizeRequestOption {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: didn't we deprecate logconsumers?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, we added a log package for the logging of the library, but the logconsumers, and the config, it's still in the core.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something we should put on the list as the current way this is done is pretty limiting.

@mdelapenya mdelapenya requested a review from stevenh May 8, 2025 09:29
@mdelapenya
Copy link
Member Author

@stevenh I added the option for the bridge network, hope it's good for review now

@mdelapenya mdelapenya merged commit a897bf5 into testcontainers:main May 9, 2025
397 of 398 checks passed
@mdelapenya mdelapenya deleted the more-options branch May 9, 2025 05:36
mdelapenya added a commit to waroir20/testcontainers-go that referenced this pull request May 15, 2025
* main:
  feat: support adding wait strategies as functional option (testcontainers#3161)
  fix(etcd): expose ports for the etcd nodes (testcontainers#3162)
  fix(wait): no port to wait for (testcontainers#3158)
  feat: add more functional options for customising containers (testcontainers#3156)
  docs(redpanda): update sasl authentication option to use scram sha 256 (testcontainers#3126)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Jun 3, 2025
* main: (236 commits)
  feat(kafka,redpanda): support for waiting for mapped ports without external checks (testcontainers#3165)
  chore: bump ryuk to 0.12.0 (testcontainers#3195)
  feat!: add options when creating RawCommand (testcontainers#3168)
  chore(deps)!: bump github.com/docker/docker from 28.1.1+incompatible to 28.2.2+incompatible (testcontainers#3194)
  feat(couchbase): adding auth to couchbase initCluster functions to support container reuse (testcontainers#3048)
  chore(deps): bump github.com/containerd/containerd/v2 (testcontainers#3167)
  docs(options): refactor options layout in modules (testcontainers#3163)
  fix(ci): do not run sonar for Testcontainers Cloud (testcontainers#3166)
  chore(ci): do not fail fast in the Testcontainers Cloud run (testcontainers#3164)
  feat: support adding wait strategies as functional option (testcontainers#3161)
  fix(etcd): expose ports for the etcd nodes (testcontainers#3162)
  fix(wait): no port to wait for (testcontainers#3158)
  feat: add more functional options for customising containers (testcontainers#3156)
  docs(redpanda): update sasl authentication option to use scram sha 256 (testcontainers#3126)
  chore(deps): bump mkdocs-include-markdown-plugin from 6.2.2 to 7.1.5 (testcontainers#3137)
  chore(deps): bump github.com/shirou/gopsutil/v4 from 4.25.1 to 4.25.4 (testcontainers#3133)
  chore(deps): bump github.com/docker/docker from 28.0.1+incompatible to 28.1.1+incompatible (testcontainers#3152)
  feat(memcached): add memcached module (testcontainers#3132)
  fix(etcd): single node etcd cluster access (testcontainers#3149)
  feat(valkey): add TLS support for Valkey (testcontainers#3131)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality or new behaviors on the existing one

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants