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

Using container ip address #72

Merged
merged 6 commits into from
Feb 9, 2018
Merged

Using container ip address #72

merged 6 commits into from
Feb 9, 2018

Conversation

budtmo
Copy link
Member

@budtmo budtmo commented Feb 7, 2018

It uses container IP address so that container do not need to run in the same network where docker-selenium hub is running.

@@ -7,7 +7,7 @@ if [ -z "$PLATFORM_NAME" ]; then
fi

if [ -z "$APPIUM_HOST" ]; then
APPIUM_HOST="127.0.0.1"
APPIUM_HOST=$(hostname -i)

Choose a reason for hiding this comment

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

-i, --ip-address
Display the IP address(es) of the host. Note that this works only if the host name can be resolved. Avoid using this option; use hostname --all-ip-addresses instead.

Is it safe?

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

The script will run inside container and It will give the IP address of that running container so I think it should be fine.

Copy link
Member

Choose a reason for hiding this comment

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

I think it should be fine

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.

3 participants