Skip to content

Commit

Permalink
docs: remove 'GOPATH' references
Browse files Browse the repository at this point in the history
  • Loading branch information
myhro committed May 13, 2019
1 parent 8b17e60 commit 5a2aad0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
11 changes: 5 additions & 6 deletions docs/contributors/build_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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
Expand Down
5 changes: 2 additions & 3 deletions docs/contributors/minikube_iso.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 6 additions & 8 deletions docs/drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5a2aad0

Please sign in to comment.