-
Notifications
You must be signed in to change notification settings - Fork 846
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
Specify environment variables in the config to be used on each host through REST API #1328
Comments
+1 |
Hey @jdowns you can use the env parameter in app.json for specifying environment variables. |
This is too bad. I'm trying to pass the $HOST to docker as the --dns argument:
I have consul running on each slave and need for the container to get access to it. As it is I have no way for my container apps to run in mesos/marathon. |
+1 |
@aquamatthias said: But this seems not to be the case. For example if I specify an env XYZ_PORT = $PORT at runtime the value for XYZ_PORT is the string $PORT. |
+1 This is true, yet @munk 's core use case is being able to specify the value of the hostname the app is running on. Is this feasible? Define it to be resolved later on when a task is started on a particular machine? |
+1 |
Maybe a separate issue should be opened that isolates functionality of hostname resolution in env variables. Edit: |
+1 |
3 similar comments
+1 |
+1 |
+1 |
@nfnt Is there a way for the Mesos containerizer to set the hostname for docker containers? |
No, the Mesos containerizer doesn't have such a feature. |
Right now, when I deploy a docker container to a host with the rest API, I can specify the hostname using a request body like this:
I would like to be able to specify a environment variable on the host for a parameter. Specifically, Mesos provides a $HOST variable that I'd like to use. I'd like to do something like this:
But now this results in the hostname being set to the literal string "$HOST". I can imagine there are other use cases for having host specific environment variables used on each configuration.
The text was updated successfully, but these errors were encountered: