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

feat: Add ability to disable internal checks for wait.HostPortStrategy #1039

Merged
merged 8 commits into from
Apr 20, 2023

Conversation

RiverPhillips
Copy link
Contributor

What does this PR do?

Adds the ability to disable the internal check for the wait.HostPortStrategy

Why is it important?

When using images without a shell the wait.HostPortStrategy fails due to the internal checks. This makes it possible to disable these internal checks

Related issues

@RiverPhillips RiverPhillips requested a review from a team as a code owner April 5, 2023 17:24
@netlify
Copy link

netlify bot commented Apr 5, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 0c8190c
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6440d05a3b008e0008ef2bc3
😎 Deploy Preview https://deploy-preview-1039--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 settings.

@mdelapenya mdelapenya self-assigned this Apr 5, 2023
@mdelapenya mdelapenya added the enhancement New feature or request label Apr 5, 2023
wait/host_port.go Outdated Show resolved Hide resolved
wait/host_port.go Outdated Show resolved Hide resolved
@mdelapenya
Copy link
Collaborator

mdelapenya commented Apr 20, 2023

Hey @RiverPhillips I'm going to apply the suggestion and merge this PR, as we are planning a release and I'd like to include this feature.

Thanks for taking the time to elaborate the issue alongside this PR 🙇

@sonarcloud
Copy link

sonarcloud bot commented Apr 20, 2023

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

@mdelapenya mdelapenya merged commit 477aecb into testcontainers:main Apr 20, 2023
53 checks passed
weeco pushed a commit to weeco/testcontainers-go that referenced this pull request Apr 24, 2023
…gy` (testcontainers#1039)

* chore: refactor internal and external checks to be separate methods

* Add flag to disable internal checks for HostPort

* log when shell is not installed

* chore: apply line break in the log

---------

Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Add ability to disable internal port check in HostPortStrategy
2 participants