Updated endpoint help generator script to work inside Docker. Changed agent flags to make this script work inside Docker container. This is needed because this script will be run as part of website publishing process which runs on ASF CI inside Docker.
Review: https://reviews.apache.org/r/60438 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c1fdaea2 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c1fdaea2 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c1fdaea2 Branch: refs/heads/master Commit: c1fdaea22aec3c86017209b8352ff7d40589a8b0 Parents: cdb90b9 Author: Vinod Kone <vinodk...@gmail.com> Authored: Thu Jun 22 10:33:27 2017 +0800 Committer: Vinod Kone <vinodk...@gmail.com> Committed: Fri Aug 4 12:01:35 2017 -0700 ---------------------------------------------------------------------- support/generate-endpoint-help.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/c1fdaea2/support/generate-endpoint-help.py ---------------------------------------------------------------------- diff --git a/support/generate-endpoint-help.py b/support/generate-endpoint-help.py index 19cff57..7e59b35 100755 --- a/support/generate-endpoint-help.py +++ b/support/generate-endpoint-help.py @@ -52,10 +52,13 @@ MASTER_COMMAND = [ '--work_dir=/tmp/mesos' ] +# NOTE: The agent flags here ensure that this script can run inside docker. AGENT_COMMAND = [ 'mesos-agent.sh', '--master=%s:%s' % (HOST_IP, MASTER_PORT), - '--work_dir=/tmp/mesos' + '--work_dir=/tmp/mesos', + '--systemd_enable_support=false', + '--launcher=posix' ]