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

fix: Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE #2536

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

hanapedia
Copy link
Contributor

What does this PR do?

Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE to align with other testcontainers projects.

Why is it important?

The changes in this PR will align how to override the host of the docker daemon where the container port is exposed with other testcontainers projects and the current testcontainers-go documentation.

In other testcontainers projects, TESTCONTAINERS_HOST_OVERRIDE environment variable is used to override host of the docker daemon where the container port is exposed. testcontainers-go mentions this environment variable in the documentation but it is currently not implemented. Instead, testcontainers-go uses TC_HOST, which is the old envrionment variable used in other projects for the same purpose.

Related issues

Follow-ups

The changes in this PR will deprecate TC_HOST environment variable.

@hanapedia hanapedia requested a review from a team as a code owner May 8, 2024 15:03
Copy link

netlify bot commented May 8, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 21280a2
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/667e9faff3927f0008052a8f
😎 Deploy Preview https://deploy-preview-2536--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
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for checking the issue and providing a fix 🙇

@mdelapenya mdelapenya self-assigned this Jun 28, 2024
@mdelapenya mdelapenya added chore Changes that do not impact the existing functionality bug An issue with the library and removed chore Changes that do not impact the existing functionality labels Jun 28, 2024
@mdelapenya mdelapenya changed the title Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE fix: Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE Jun 28, 2024
Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mdelapenya mdelapenya merged commit 4ce4d87 into testcontainers:main Jun 28, 2024
106 of 108 checks passed
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Jul 2, 2024
* main:
  chore(deps): bump github.com/docker/docker from v26.1.4 to v27.0.2 (testcontainers#2593)
  fix: Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE (testcontainers#2536)
  chore: test cleanups (testcontainers#2608)
  chore(ci): pass docker install type to the nightly build payload (testcontainers#2612)
  chore: run rootless mode in nighlty builds (testcontainers#2611)
  chore(deps): bump github.com/hashicorp/go-retryablehttp (testcontainers#2605)
  chore: improve log handling when container is stopping (testcontainers#2601)
mdelapenya added a commit that referenced this pull request Jul 2, 2024
* main:
  fix: Rename TC_HOST environment variable to TESTCONTAINERS_HOST_OVERRIDE (#2536)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TESTCONTAINERS_HOST_OVERRIDE is documented but not implemented
2 participants