-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
HUB_HOST and HUB_PORT to handle hub and nodes #640
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9a29879
Introducing HUB_HOST and HUB_PORT to start deprecating HUB_PORT_4444_…
diemol 8806d1c
Updating main README to introduce HUB_HOST, HUB_PORT and more ways to…
diemol b968a4d
Adding missing --net in the command
diemol ac08f0d
Being more accurate in the docker run example.
diemol 1b5fddc
Missed part of the command example.
diemol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confused about a couple of things, why do you check
"if $HUB_HOST isn't empty, set port to 4444"
also, i see 4 variables...
HUB_HOST, HUB_PORT, HUB_HOST_PARAM, HUB_PORT_PARAM.
what's the differences between these? can';t we consolidate? make things a little simpler?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, no... There are only 3 variables:
HUB_HOST
,HUB_PORT
andHUB_PORT_PARAM
.What I tried to do is to check first if
HUB_HOST
was set, if so then useHUB_PORT_PARAM
as a placeholder for port 4444 (assuming that the user started the hub with port 4444).Therefore they only will need to set
HUB_HOST
and the default port will be 4444. And in case they started the hub with a different port, thenHUB_PORT
would be set andHUB_PORT_PARAM
takes its value.It could be simplified by doing something like:
So the user will need to set both variables always. I just thought it could be nicer when the user only needs to set
HUB_HOST
since in most of the cases people will use 4444 for hub.What do you think?