diff --git a/docs/contributors/build_guide.md b/docs/contributors/build_guide.md index 8283d413b07f..f087fe5edb73 100644 --- a/docs/contributors/build_guide.md +++ b/docs/contributors/build_guide.md @@ -17,10 +17,10 @@ $ sudo dnf install -y glibc-static ### Building from Source -Clone minikube into your go path under `$GOPATH/src/k8s.io` +Clone and build minikube: ```shell -$ git clone https://github.com/kubernetes/minikube.git $GOPATH/src/k8s.io/minikube -$ cd $GOPATH/src/k8s.io/minikube +$ git clone https://github.com/kubernetes/minikube.git +$ cd minikube $ make ``` @@ -37,14 +37,13 @@ $ git clone https://github.com/kubernetes/minikube.git Build (cross compile for linux / OS X and Windows) using make: ```shell $ cd minikube -$ docker run --rm -v "$PWD":/go/src/k8s.io/minikube -w /go/src/k8s.io/minikube golang:stretch make cross +$ MINIKUBE_BUILD_IN_DOCKER=y make cross ``` Check "out" directory: ```shell $ ls out/ -docker-machine-driver-hyperkit.d minikube minikube.d test.d -docker-machine-driver-kvm2.d minikube-linux-amd64 storage-provisioner.d +minikube-darwin-amd64 minikube-linux-amd64 minikube-windows-amd64.exe ``` ### Run Instructions diff --git a/docs/contributors/minikube_iso.md b/docs/contributors/minikube_iso.md index b55d5ecbd2ea..d8fc153e76d4 100644 --- a/docs/contributors/minikube_iso.md +++ b/docs/contributors/minikube_iso.md @@ -25,7 +25,7 @@ Also be sure to have an UTF-8 locale set up in order to build the ISO. ### Build instructions ```shell -$ git clone https://github.com/kubernetes/minikube +$ git clone https://github.com/kubernetes/minikube.git $ cd minikube $ make buildroot-image $ make out/minikube.iso @@ -38,8 +38,7 @@ The bootable ISO image will be available in `out/minikube.iso`. ### Testing local minikube-iso changes ```shell -$ ./out/minikube start \ - --iso-url=file://$GOPATH/src/k8s.io/minikube/out/minikube.iso +$ ./out/minikube start --iso-url=file://$(pwd)/out/minikube.iso ``` ### Buildroot configuration diff --git a/docs/drivers.md b/docs/drivers.md index 1ac2ba1c74aa..8bae3b7085a8 100644 --- a/docs/drivers.md +++ b/docs/drivers.md @@ -63,16 +63,14 @@ curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine- && sudo install docker-machine-driver-kvm2 /usr/local/bin/ ``` -NOTE: Ubuntu users on a release older than 18.04, or anyone experiencing [#3206: Error creating new host: dial tcp: missing address.](https://github.com/kubernetes/minikube/issues/3206) you will need to build your own driver until [#3689](https://github.com/kubernetes/minikube/issues/3689) is resolved. Building this binary will require [Go v1.11](https://golang.org/dl/) or newer to be installed. +NOTE: Ubuntu users on a release older than 18.04, or anyone experiencing [#3206: Error creating new host: dial tcp: missing address.](https://github.com/kubernetes/minikube/issues/3206) you will need to build your own driver until [#3689](https://github.com/kubernetes/minikube/issues/3689) is resolved. Building this binary will require [Go v1.12](https://golang.org/dl/) or newer to be installed. ```shell -sudo apt install libvirt-dev -test -d $GOPATH/src/k8s.io/minikube || \ - git clone https://github.com/kubernetes/minikube.git $GOPATH/src/k8s.io/minikube -cd $GOPATH/src/k8s.io/minikube -git pull -make out/docker-machine-driver-kvm2 -sudo install out/docker-machine-driver-kvm2 /usr/local/bin +$ sudo apt install libvirt-dev +$ git clone https://github.com/kubernetes/minikube.git +$ cd minikube +$ make out/docker-machine-driver-kvm2 +$ sudo install out/docker-machine-driver-kvm2 /usr/local/bin ``` To use the kvm2 driver: