@@ -17,31 +17,36 @@ Use an up-to-date version of [go](https://golang.org/dl)
1717
1818To use the driver, you can download the sources and build it locally:
1919
20- # Tell GO where to find sources and where to put binaries
21- # see also https://github.com/golang/go/wiki/SettingGOPATH
22- export GOPATH="$(pwd)"
23- export GOBIN=$GOPATH/bin
24- # Build the binary
20+ # Get sources and build the binary at ~/go/bin/docker-machine-driver-hetzner
2521 go get github.com/jonasprogrammer/docker-machine-driver-hetzner
26- # Make the binary accessible to docker-machine
22+
23+ # Make the binary accessible to docker-machine ($GOBIN is typically ~/go/bin)
2724 export PATH="$PATH:$GOBIN"
25+
2826 # Make docker-machine output help including hetzner-specific options
2927 docker-machine create --driver hetzner
3028
3129### For development
3230
33- To compile the local sources, do the following:
31+ Fork this repository, yielding ` github.com/<yourAccount>/docker-machine-driver-hetzner ` .
32+
33+ # Get the sources of your fork and build it locally
34+ go get github.com/<yourAccount>/docker-machine-driver-hetzner
35+
36+ # * This integrates your fork into the $GOPATH (typically pointing at ~/go)
37+ # * Your sources are at $GOPATH/src/github.com/<yourAccount>/docker-machine-driver-hetzner
38+ # * That folder is a local Git repository. You can pull, commit and push from there.
39+ # * The binary will typically be at $GOPATH/bin/docker-machine-driver-hetzner
40+ # * In the source directory $GOPATH/src/github.com/<yourAccount>/docker-machine-driver-hetzner
41+ # you may use go get to re-build the binary.
42+ # * Note: when you build the driver from different repositories, e.g. from your fork
43+ # as well as github.com/jonasprogrammer/docker-machine-driver-hetzner,
44+ # the binary files generated by these builds are all called the same
45+ # and will hence override each other.
3446
35- # Check out sources
36- git clone https://github.com/JonasProgrammer/docker-machine-driver-hetzner.git
37- # Tell GO where to find sources and where to put binaries
38- # see also https://github.com/golang/go/wiki/SettingGOPATH
39- export GOPATH="$(pwd)"
40- export GOBIN=$GOPATH/bin
41- # Build the binary
42- go get
4347 # Make the binary accessible to docker-machine
4448 export PATH="$PATH:$GOBIN"
49+
4550 # Make docker-machine output help including hetzner-specific options
4651 docker-machine create --driver hetzner
4752
0 commit comments