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

Added functionality to ignore multiple ports #5

Closed
wants to merge 3 commits into from

Conversation

christopherhelf
Copy link

I've added functionality to ignore multiple ports via the ignoreports flag, multiple ports have to be separated by comma, e.g.

waitforservices -ignoreport=8093,8094,8095

@mfrister
Copy link
Contributor

@christopherhelf Thanks for the PR! I'll have a look in the next few days.

@christopherhelf
Copy link
Author

You're welcome, I thought it would be a good addition. I'm new to Go so there might be better ways to do this?, but it worked fine in my tests.

@@ -28,12 +28,21 @@ func (s Service) AddressAndPort() string {

var timeout = flag.Int64("timeout", 60, "time to wait for all services to be up (seconds)")
var httpPort = flag.Int("httpport", 0, "wait for an http request if target port is given port")
var ignorePort = flag.Int("ignoreport", 0, "don't wait for services on this port to be up")
var _ignorePort = flag.String("ignoreport", "", "don't wait for services on these ports to be up (separated by comma)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the underscore?

@mfrister mfrister removed their assignment Mar 21, 2016
@mfrister
Copy link
Contributor

@christopherhelf The basic idea is good, I added a few comments to the code on things you could improve.

Just so you know, Docker links are going to disappear and we haven't looked into how waitforservices might work without them.

@tobischo
Copy link
Member

Closed due to lack of activity

@tobischo tobischo closed this Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants