Minor fixes based on discussions on #2693

* Volume exports ./bundles instead of root directory
* Documents build using docker-docs instead of docker:docs
* Bundles directory is created before running build or docs
This commit is contained in:
Frederick F. Kautz IV 2013-11-30 00:07:53 -08:00
parent 7267c4b746
commit 56ab9cb0d5
1 changed files with 9 additions and 5 deletions

View File

@ -1,14 +1,18 @@
default: build
build:
build: bundles
docker build -t docker .
docker run -privileged -v `pwd`:/go/src/github.com/dotcloud/docker docker hack/make.sh binary
docker run -privileged -v `pwd`/bundles:/go/src/github.com/dotcloud/docker/bundles docker hack/make.sh binary
doc:
cd docs && docker build -t docker:docs . && docker run -p 8000:8000 docker:docs
cd docs && docker build -t docker-docs . && docker run -p 8000:8000 docker-docs
test:
docker run -privileged -v `pwd`:/go/src/github.com/dotcloud/docker docker hack/make.sh test
test: bundles
docker run -privileged -v `pwd`/bundles:/go/src/github.com/dotcloud/docker/bundles docker hack/make.sh test
shell:
docker run -privileged -i -t docker bash
bundles:
mkdir bundles