From 0881fa0c692044f03cdc010403e3bd6ce0b316c2 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Wed, 13 May 2015 16:41:54 +0100 Subject: [PATCH] Add instructions for building on a Vargant VM without logging in --- site/building.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/site/building.md b/site/building.md index 41c3fe83..af199247 100644 --- a/site/building.md +++ b/site/building.md @@ -162,6 +162,23 @@ vm$ sudo docker ps and so on. +If you are looking to just do a build and not run anything on this VM, +you can do so with +```bash +$ vagrant ssh -c 'make -C src/github.com/weaveworks/weave' +``` + +you should then find container snapshot tarballs in the top-level +directory. You can use these snapshots with `docker load` agains a +different host, e.g. + +```bash +$ export DOCKER_HOST=tcp:// +$ docker load < weave.tar +$ docker load < weavedns.tar +$ docker load < weaveexec.tar +``` + You can provide extra Vagrant configuration by putting a file `Vagrant.local` in the same place as `Vagrantfile`; for instance, to forward additional ports.