mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
356d006895
This is a modification of original PR by @erikh (R118) to keep the netlink codebase more consistent and my OCD under control :-) Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
24 lines
552 B
Makefile
24 lines
552 B
Makefile
|
|
all:
|
|
docker build -t docker/libcontainer .
|
|
|
|
test: build
|
|
docker run --rm --privileged docker/libcontainer
|
|
|
|
sh:
|
|
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)
|