mirror of https://github.com/docker/docs.git
Build and test using Docker
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
54de0cf03f
commit
e42afabd03
|
@ -0,0 +1 @@
|
|||
machine*
|
|
@ -1 +1 @@
|
|||
machine
|
||||
machine*
|
||||
|
|
|
@ -4,4 +4,4 @@ go:
|
|||
script:
|
||||
- script/validate-dco
|
||||
- script/validate-gofmt
|
||||
- script/test
|
||||
- go test -v ./...
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
FROM golang:onbuild
|
||||
ENTRYPOINT ["machine"]
|
||||
FROM golang:1.3-cross
|
||||
RUN go get github.com/mitchellh/gox
|
||||
ENV GOPATH /go/src/github.com/docker/machine/Godeps/_workspace:/go
|
||||
WORKDIR /go/src/github.com/docker/machine
|
||||
ADD . /go/src/github.com/docker/machine
|
||||
|
|
|
@ -108,7 +108,8 @@ To build, run:
|
|||
$ go get github.com/docker/machine
|
||||
$ cd $GOPATH/src/github.com/docker/machine
|
||||
$ script/build
|
||||
$ ./machine
|
||||
|
||||
That will create binaries for various platforms in the current directory.
|
||||
|
||||
If you have any questions we're in #docker-machine on Freenode.
|
||||
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/sh
|
||||
GOPATH=`pwd`/Godeps/_workspace:$GOPATH go build
|
||||
set -e
|
||||
docker build -t docker-machine .
|
||||
exec docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine gox -os="darwin linux" -parallel=5
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/sh
|
||||
GOPATH=`pwd`/Godep/_workspace:$GOPATH go test -v ./...
|
||||
set -e
|
||||
docker build -t docker-machine .
|
||||
exec docker run --rm docker-machine go test -v ./...
|
||||
|
|
Loading…
Reference in New Issue