From cb5c6cb85645675314cf76f7a82b008c0382df91 Mon Sep 17 00:00:00 2001 From: Stefano Vozza Date: Thu, 11 May 2017 11:20:33 +0100 Subject: [PATCH] Adds instructions for developing in Docker --- docs/development/Docker.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/development/Docker.md diff --git a/docs/development/Docker.md b/docs/development/Docker.md new file mode 100644 index 0000000000..8e6d6c1f34 --- /dev/null +++ b/docs/development/Docker.md @@ -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`.