diff options
| author | Patrick Lang <patrick.lang@hotmail.com> | 2020-05-11 22:46:14 -0700 |
|---|---|---|
| committer | Patrick Lang <patrick.lang@hotmail.com> | 2020-05-11 23:00:04 -0700 |
| commit | 07b308926ca2e7fc0b8506a6713e1bbe3835fe2f (patch) | |
| tree | 8a1a32ab601a08ea8b89eecc2c54d23a83cbca3d /contributors | |
| parent | 63862da75a80dfd4b7304f33a18dca921f5a4527 (diff) | |
Clarify how to build using or targetting Windows
Diffstat (limited to 'contributors')
| -rw-r--r-- | contributors/devel/development.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contributors/devel/development.md b/contributors/devel/development.md index e3ee94ae..df882307 100644 --- a/contributors/devel/development.md +++ b/contributors/devel/development.md @@ -115,6 +115,13 @@ environment. Recent Linux distros should work out-of-the-box. macOS ships with outdated BSD-based tools. We recommend installing [macOS GNU tools]. +Developers with Windows machines have two choices available to run the needed tools: +1. If you're using Windows 10 20h1, then you may [install WSL2] and your distro of choice +2. If you're using a previous version of Windows, then set up a Linux VM with at least 8GB of memory and 60GB of disk space. + +In either case, the same Linux development tools and Kubernetes source code are needed. Start your WSL2 distro or connect +to your Linux VM and follow the steps below to install the required tools. + ### make Kubernetes local build system requires `make` command to be present in your corresponding development platform. @@ -229,6 +236,12 @@ To build binaries for all platforms: make cross ``` +To build binaries for a specific platform, add `KUBE_BUILD_PLATFORMS=<os>/<arch>`. For example: + +```sh +make cross KUBE_BUILD_PLATFORMS=windows/amd64 +``` + #### Install etcd ```sh @@ -308,3 +321,4 @@ To check out code to work on, please refer to [this guide](/contributors/guide/g [kubernetes.io]: https://kubernetes.io [mercurial]: http://mercurial.selenic.com/wiki/Download [Build with Bazel]: sig-testing/bazel.md +[install WSL2]: https://docs.microsoft.com/en-us/windows/wsl/wsl2-install
\ No newline at end of file |
