You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ Building Kubernetes is easy if you take advantage of the containerized build env
8
8
***macOS** You can either use Docker for Mac or docker-machine. See installation instructions [here](https://docs.docker.com/docker-for-mac/).
9
9
**Note**: You will want to set the Docker VM to have at least 4.5GB of initial memory or building will likely fail. (See: [#11852](http://issue.k8s.io/11852)).
10
10
***Linux with local Docker** Install Docker according to the [instructions](https://docs.docker.com/installation/#installation) for your OS.
11
+
***Windows with Docker Desktop WSL2 backend** Install Docker according to the [instructions](https://docs.docker.com/docker-for-windows/wsl-tech-preview/). Be sure to store your sources in the local Linux file system, not the Windows remote mount at `/mnt/c`.
11
12
***Remote Docker engine** Use a big machine in the cloud to build faster. This is a little trickier so look at the section later on.
@@ -23,7 +24,7 @@ The following scripts are found in the [`build/`](.) directory. Note that all sc
23
24
24
25
*[`build/run.sh`](run.sh): Run a command in a build docker container. Common invocations:
25
26
*`build/run.sh make`: Build just linux binaries in the container. Pass options and packages as necessary.
26
-
*`build/run.sh make cross`: Build all binaries for all platforms
27
+
*`build/run.sh make cross`: Build all binaries for all platforms. To build only a specific platform, add `KUBE_BUILD_PLATFORMS=<os>/<arch>`
27
28
*`build/run.sh make kubectl KUBE_BUILD_PLATFORMS=darwin/amd64`: Build the specific binary for the specific platform (`kubectl` and `darwin/amd64` respectively in this example)
28
29
*`build/run.sh make test`: Run all unit tests
29
30
*`build/run.sh make test-integration`: Run integration test
0 commit comments