-
Notifications
You must be signed in to change notification settings - Fork 843
Read command line options from MARATHON_*. #475
Read command line options from MARATHON_*. #475
Conversation
+1 |
@everpeace it looks like mesos uses all caps for this, aka you should be doing something like so:
|
bfec305
to
d525377
Compare
@breerly thanks for your feedback. I pushed a commit supporting environment variables with all CAP like |
fba2f03
to
69c8d79
Compare
@everpeace Hi Shingo, sorry for the delay on this. I'd love to get this landed for 0.7.4 (scheduled for 10 October). Could you describe this change in the docs as well? |
…meos-master/slave. This could be very useful when you start marathon with docker. If we had a docker container in which marathon was installed , we can start marathon like this. ``` $ docker run -e "MARATHON_master=zk://localhost:2181/mesos" -e "MARATHON_zk=zk://localhost:2181/marathon" marathon /marathon-0.6.1/bin/start ```
69c8d79
to
178c06a
Compare
@ConnorDoyle Thanks for reviewing this. I rebased my branch and added
|
@@ -6,6 +6,8 @@ title: Command Line Flags | |||
|
|||
The following options can influence how Marathon works: | |||
|
|||
_All options can be also set by environment variable `MARATON_OPTION_NAME` (the option name with a `MARATHON_` prefix added to it), for example`MARATHON_MASTER` for `--master` option._ | |||
|
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.
Could we also describe which setting takes precedence when both are supplied?
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.
Yes, we should describe this. I will add this.
@ConnorDoyle I forgot pinging you. |
@ConnorDoyle Thank you very much for your kind shepherding! |
Thanks Shingo! |
Read command line options from MARATHON_*.
Read command line options from MARATHON_* environment variables like meos-master/slave.
This could be very useful when you start marathon with docker. If we had a docker container in which marathon was installed and whose
Dockerfile
containsENTRYPOINT ["/marathon-0.6.1/bin/start"]
, we can start marathon like this.However, I'm not a shell script expart, so I would be pleasure to have feedbacks.