Skip to content

docs: document tc_host inside the networking section#1041

Merged
mdelapenya merged 2 commits intotestcontainers:mainfrom
sgloutnikov:document_tc_host
Apr 11, 2023
Merged

docs: document tc_host inside the networking section#1041
mdelapenya merged 2 commits intotestcontainers:mainfrom
sgloutnikov:document_tc_host

Conversation

@sgloutnikov
Copy link
Copy Markdown
Contributor

What does this PR do?

Document the TC_HOST environment variable in the container networking section.

Why is it important?

Our CI Kubernetes runners were incorrectly returning localhost via the Host call. After going through the docker.go code I noticed there is a manual override via the TC_HOST ENV variable. Document this so it's more visible in the future.

@sgloutnikov sgloutnikov requested a review from a team as a code owner April 7, 2023 01:07
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 7, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 800313e
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6435094b6439da000791126a
😎 Deploy Preview https://deploy-preview-1041--testcontainers-go.netlify.app/features/networking
📱 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 settings.

Co-authored-by: Manuel de la Peña <[email protected]>
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sgloutnikov
Copy link
Copy Markdown
Contributor Author

Much better with the Info block.

Copy link
Copy Markdown
Member

@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 6e83fc2 into testcontainers:main Apr 11, 2023
@mdelapenya mdelapenya added the documentation Docs, docs, docs. label Apr 11, 2023
@mdelapenya mdelapenya self-assigned this Apr 11, 2023
@sgloutnikov sgloutnikov deleted the document_tc_host branch April 11, 2023 09:00
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Apr 13, 2023
* main:
  Add support for LocalStack v2 (testcontainers#994)
  docs: document tc_host inside the networking section (testcontainers#1041)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Docs, docs, docs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants