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

[feature] Make env var NOMAD_HOST_PORT_xxx available for dynamic ports #1098

Closed
gpaggi opened this issue Apr 15, 2016 · 2 comments
Closed

[feature] Make env var NOMAD_HOST_PORT_xxx available for dynamic ports #1098

gpaggi opened this issue Apr 15, 2016 · 2 comments

Comments

@gpaggi
Copy link

gpaggi commented Apr 15, 2016

The NOMAD_HOST_PORT_xxx environment variable is currently made available only for mapped ports and not for dynamic ones, where NOMAD_ADDR_xxx is made available (IP:PORT).

That would be handy, for instance, when using the java driver to start a service that takes the port number as a command line argument: -Dhttp.port=4569
At the moment I need to use the exec driver to run a script that splits NOMAD_ADDR_xxx and passes the port to my java application

@gpaggi
Copy link
Author

gpaggi commented Apr 15, 2016

Thanks for the quick followup @dadgar :)

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant