Merge pull request #2551 from svozza/patch-1

Adds instructions for developing in Docker
This commit is contained in:
Justin Santa Barbara 2017-05-12 21:54:17 -07:00 committed by GitHub
commit 5af4f47a22
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
In order to develop inside a Docker container you must mount your local copy of
the Kops repo into the container's `GOPATH`. For the offical Golang Docker
image this is simply a matter of running the following command:
```bash
docker run -it -v /path/to/local/kops/repo:/go/src/k8s.io/kops golang bash
```
You should now be able to test if everything is working by building the project
using `make kops` or running the tests with `make test`. In order to simulate
the tests ran on the CI server then use the target `make ci`.