2014-07-24 01:40:55 +08:00
|
|
|
|
|
|
|
all:
|
|
|
|
docker build -t docker/libcontainer .
|
|
|
|
|
2014-08-08 09:37:38 +08:00
|
|
|
test: build
|
|
|
|
docker run --rm --privileged docker/libcontainer
|
2014-07-24 08:14:27 +08:00
|
|
|
|
|
|
|
sh:
|
2014-08-05 03:31:58 +08:00
|
|
|
docker run --rm -it --cap-add NET_ADMIN --cap-add SYS_ADMIN -w /busybox docker/libcontainer nsinit exec sh
|
|
|
|
|
|
|
|
GO_PACKAGES = $(shell find . -not \( -wholename ./vendor -prune \) -name '*.go' -print0 | xargs -0n1 dirname | sort -u)
|
|
|
|
|
|
|
|
direct-test:
|
|
|
|
go test -cover -v $(GO_PACKAGES)
|
|
|
|
|
|
|
|
direct-test-short:
|
|
|
|
go test -cover -test.short -v $(GO_PACKAGES)
|
|
|
|
|
|
|
|
direct-build:
|
|
|
|
go build -v $(GO_PACKAGES)
|
|
|
|
|
|
|
|
direct-install:
|
|
|
|
go install -v $(GO_PACKAGES)
|