moby: Introduce the "build" subcommand

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer
2017-03-21 21:27:47 +00:00
parent 13d6a2461d
commit dd71aeb39f
5 changed files with 63 additions and 34 deletions

View File

@@ -15,12 +15,12 @@ bin/moby: $(MOBY_DEPS) | bin
tar cf - vendor src/initrd src/pad4 -C src/cmd/moby . | docker run --rm --net=none --log-driver=none -i $(CROSS) $(GO_COMPILE) --package github.com/docker/moby -o $@ | tar xf -
moby-initrd.img: bin/moby moby.yaml
$^
bin/moby build moby.yaml
moby-bzImage: moby-initrd.img
test-initrd.img: bin/moby test/test.yaml
$^
bin/moby build test/test.yaml
test-bzImage: test-initrd.img