2014-07-24 01:40:55 +08:00
|
|
|
|
|
|
|
all:
|
|
|
|
docker build -t docker/libcontainer .
|
|
|
|
|
2014-08-12 10:12:26 +08:00
|
|
|
test:
|
|
|
|
# we need NET_ADMIN for the netlink tests and SYS_ADMIN for mounting
|
2014-08-26 02:03:59 +08:00
|
|
|
docker run --rm -it --privileged docker/libcontainer
|
2014-07-24 08:14:27 +08:00
|
|
|
|
|
|
|
sh:
|
2014-08-26 02:03:59 +08:00
|
|
|
docker run --rm -it --privileged -w /busybox docker/libcontainer nsinit exec sh
|
2014-08-05 03:31:58 +08:00
|
|
|
|
2014-10-03 06:19:56 +08:00
|
|
|
GO_PACKAGES = $(shell find . -not \( -wholename ./vendor -prune -o -wholename ./.git -prune \) -name '*.go' -print0 | xargs -0n1 dirname | sort -u)
|
2014-08-05 03:31:58 +08:00
|
|
|
|
|
|
|
direct-test:
|
2014-12-17 12:34:55 +08:00
|
|
|
go get github.com/golang/glog && \
|
2014-09-27 18:24:03 +08:00
|
|
|
go test $(TEST_TAGS) -cover -v $(GO_PACKAGES)
|
2014-08-05 03:31:58 +08:00
|
|
|
|
|
|
|
direct-test-short:
|
2014-09-27 18:24:03 +08:00
|
|
|
go test $(TEST_TAGS) -cover -test.short -v $(GO_PACKAGES)
|
2014-08-05 03:31:58 +08:00
|
|
|
|
|
|
|
direct-build:
|
|
|
|
go build -v $(GO_PACKAGES)
|
|
|
|
|
|
|
|
direct-install:
|
|
|
|
go install -v $(GO_PACKAGES)
|