mirror of https://github.com/docker/docs.git
clarify dev workflow
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
This commit is contained in:
parent
951ac91a75
commit
3783016c66
|
|
@ -34,13 +34,15 @@ Then you can fetch `swarm` code to your `$GOPATH`.
|
||||||
go get -d github.com/docker/swarm
|
go get -d github.com/docker/swarm
|
||||||
```
|
```
|
||||||
|
|
||||||
The final step is to prepare dependencies for `swarm` and compile it.
|
#### Start hacking
|
||||||
|
|
||||||
|
First, prepare dependencies for `swarm` and try to compile it.
|
||||||
```sh
|
```sh
|
||||||
cd src/github.com/docker/swarm
|
cd src/github.com/docker/swarm
|
||||||
$GOBIN/godep restore
|
$GOBIN/godep restore
|
||||||
|
go test
|
||||||
go install
|
go install
|
||||||
```
|
```
|
||||||
You'll find the `swarm` binary under the `$GOBIN` directory.
|
|
||||||
|
|
||||||
#### Adding New Dependencies
|
#### Adding New Dependencies
|
||||||
|
|
||||||
|
|
@ -52,4 +54,11 @@ git diff # check what added or removed in Godep/Godeps.json
|
||||||
# then manually add missing dependencies
|
# then manually add missing dependencies
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To make sure you newly added codes will make the build process happy, you can try building Swarm in the same way as defined in `Dockerfile`.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$GOBIN/godep go install
|
||||||
|
```
|
||||||
|
Then you should find the `swarm` binary under the `$GOBIN` directory.
|
||||||
|
|
||||||
Happy hacking!
|
Happy hacking!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue