Skip to content

Commit 0a0d6a1

Browse files
committed
Move development instructions to the bottom
1 parent fb25f73 commit 0a0d6a1

File tree

1 file changed

+28
-30
lines changed

1 file changed

+28
-30
lines changed

README.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ Create [Docker machines](https://github.com/docker/machine) on [Hetzner Cloud](h
99
You need to create a project-sepcific access token under `Access` > `API Tokens` in the project control panel
1010
and pass that to `docker-machine create` with the `--hetzner-api-token` option.
1111

12+
1213
## Building
1314

1415
Use an up-to-date version of [go](https://golang.org/dl)
1516

16-
### For use
17-
1817
To use the driver, you can download the sources and build it locally:
1918

2019
# Get sources and build the binary at ~/go/bin/docker-machine-driver-hetzner
@@ -25,34 +24,6 @@ To use the driver, you can download the sources and build it locally:
2524
export GOBIN=$GOPATH/bin
2625
export PATH="$PATH:$GOBIN"
2726

28-
# Make docker-machine output help including hetzner-specific options
29-
docker-machine create --driver hetzner
30-
31-
### For development
32-
33-
Fork this repository, yielding `github.com/<yourAccount>/docker-machine-driver-hetzner`.
34-
35-
# Get the sources of your fork and build it locally
36-
go get github.com/<yourAccount>/docker-machine-driver-hetzner
37-
38-
# * This integrates your fork into the $GOPATH (typically pointing at ~/go)
39-
# * Your sources are at $GOPATH/src/github.com/<yourAccount>/docker-machine-driver-hetzner
40-
# * That folder is a local Git repository. You can pull, commit and push from there.
41-
# * The binary will typically be at $GOPATH/bin/docker-machine-driver-hetzner
42-
# * In the source directory $GOPATH/src/github.com/<yourAccount>/docker-machine-driver-hetzner
43-
# you may use go get to re-build the binary.
44-
# * Note: when you build the driver from different repositories, e.g. from your fork
45-
# as well as github.com/jonasprogrammer/docker-machine-driver-hetzner,
46-
# the binary files generated by these builds are all called the same
47-
# and will hence override each other.
48-
49-
# Make the binary accessible to docker-machine
50-
export GOPATH=$(go env GOPATH)
51-
export GOBIN=$GOPATH/bin
52-
export PATH="$PATH:$GOBIN"
53-
54-
# Make docker-machine output help including hetzner-specific options
55-
docker-machine create --driver hetzner
5627

5728
## Usage
5829

@@ -109,3 +80,30 @@ was used during creation.
10980
| `--hetzner-server-location` | `HETZNER_LOCATION` | - *(let Hetzner choose)* |
11081
| `--hetzner-existing-key-path` | `HETZNER_EXISTING_KEY_PATH` | - *(generate new keypair)* |
11182
| `--hetzner-existing-key-id` | `HETZNER_EXISTING_KEY_ID` | 0 *(upload new key)* |
83+
84+
85+
## Development
86+
87+
Fork this repository, yielding `github.com/<yourAccount>/docker-machine-driver-hetzner`.
88+
89+
# Get the sources of your fork and build it locally
90+
go get github.com/<yourAccount>/docker-machine-driver-hetzner
91+
92+
# * This integrates your fork into the $GOPATH (typically pointing at ~/go)
93+
# * Your sources are at $GOPATH/src/github.com/<yourAccount>/docker-machine-driver-hetzner
94+
# * That folder is a local Git repository. You can pull, commit and push from there.
95+
# * The binary will typically be at $GOPATH/bin/docker-machine-driver-hetzner
96+
# * In the source directory $GOPATH/src/github.com/<yourAccount>/docker-machine-driver-hetzner
97+
# you may use go get to re-build the binary.
98+
# * Note: when you build the driver from different repositories, e.g. from your fork
99+
# as well as github.com/jonasprogrammer/docker-machine-driver-hetzner,
100+
# the binary files generated by these builds are all called the same
101+
# and will hence override each other.
102+
103+
# Make the binary accessible to docker-machine
104+
export GOPATH=$(go env GOPATH)
105+
export GOBIN=$GOPATH/bin
106+
export PATH="$PATH:$GOBIN"
107+
108+
# Make docker-machine output help including hetzner-specific options
109+
docker-machine create --driver hetzner

0 commit comments

Comments
 (0)