Repository: mesos Updated Branches: refs/heads/master 8f4839d99 -> 127766845
Windows: Added build and run instructions. Adds instructions for building and running the Mesos agent in Windows 10 and Windows Server 2012 using Visual Studio 2015. Review: https://reviews.apache.org/r/48056/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/38edbf7c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/38edbf7c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/38edbf7c Branch: refs/heads/master Commit: 38edbf7c27ac50939c960d10b23dfbe15044ff03 Parents: 8f4839d Author: Daniel Pravat <dpra...@outlook.com> Authored: Wed Jun 22 10:27:51 2016 -0700 Committer: Joseph Wu <josep...@apache.org> Committed: Wed Jun 22 11:34:19 2016 -0700 ---------------------------------------------------------------------- docs/getting-started.md | 46 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/38edbf7c/docs/getting-started.md ---------------------------------------------------------------------- diff --git a/docs/getting-started.md b/docs/getting-started.md index 04d74c1..cadda76 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -26,6 +26,8 @@ Mesos runs on Linux (64 Bit) and Mac OS X (64 Bit). To build Mesos from source, For full support of process isolation under Linux a recent kernel >=3.10 is required. +Mesos agent also run on Windows. To build Mesos agent from source, Visual Studio 2015 is required. + Make sure your hostname is resolvable via DNS or via `/etc/hosts` to allow full support of Docker's host-networking capabilities, needed for some of the Mesos tests. When in doubt, please validate that `/etc/hosts` contains your hostname. ### Ubuntu 14.04 @@ -165,7 +167,17 @@ Following are the instructions for stock CentOS 7.1. If you are using a differen # Install other Mesos dependencies. $ sudo yum install -y apache-maven python-devel java-1.8.0-openjdk-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-util-devel -## Building Mesos +### Windows + +Following are the instructions for stock Windows 10 and Windows Server 2012 or newer. + +1. Install the latest version of [Visual Studio Community 2015](https://www.visualstudio.com/post-download-vs?sku=community). + Start Visual Studio Community to complete the setup and configuration. +2. Install [CMake 3.5.2 or later](https://cmake.org/files/v3.5/cmake-3.5.2-win32-x86.msi). + Do not run CMake before finishing the Visual Studio Community setup. +3. Install [Gnu Patch 2.5.9-7 or later](http://downloads.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-7-setup.exe). + +## Building Mesos (Posix) # Change working directory. $ cd mesos @@ -187,6 +199,38 @@ In order to speed up the build and reduce verbosity of the logs, you can append # Install (Optional). $ make install +## Building Mesos (Windows) + + # Start a VS2015 x64 Native Tool command prompt. + # This can be found by opening VS2015 and looking under the "tools" + # menu for "Visual Studio Command Prompt". + + # Change working directory. + $ cd mesos + + # If you are developing on Windows, we recommend running the bootstrap. + # This requires administrator privileges. + $ .\bootstrap.bat + + # Generate the solution and build. + $ mkdir build + $ cd build + $ cmake .. -G "Visual Studio 14 2015 Win64" -DENABLE_LIBEVENT=1 + + # After generating the Visual Studio solution you can use the IDE to open + # the project and skip the next step. In this case it is recommended to set + # `PreferredToolArchitecture` environment variable to `x64`. + # NOTE: `PreferredToolArchitecture` can be set system-wide via Control Panel. + $ msbuild Mesos.sln /p:PreferredToolArchitecture=x64 + + # mesos-agent.exe can be found in the <repository>\build\src\Debug folder. + $ cd src\Debug + + # The Windows agent exposes new isolators that must be used as with + # the `--isolation` flag. To get started point the agent to a working + # master, using eiher an IP address or zookeeper information. + $ mesos-agent.exe --master=<master> --work_dir=<work folder> --isolation=windows/cpu,filesystem/windows --launcher_dir=<repository>\build\src\Debug + ## Examples Mesos comes bundled with example frameworks written in C++, Java and Python.