mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
f4cf808a3d
Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Conflicts: MAINTAINERS cgroups/cgroups.go cgroups/fs/apply_raw.go cgroups/fs/notify_linux.go cgroups/fs/notify_linux_test.go cgroups/systemd/apply_systemd.go config.go configs/config_test.go console/console.go integration/exec_test.go integration/init_test.go integration/template_test.go integration/utils_test.go linux_notify.go linux_notify_test.go mount/init.go mount/mount_config.go mount/pivotroot.go mount/ptmx.go namespaces/create.go namespaces/exec.go namespaces/execin.go namespaces/init.go namespaces/nsenter/nsenter.c namespaces/nsenter/nsenter.go namespaces/utils.go network/network.go network/types.go network/veth.go notify_linux.go notify_linux_test.go nsinit/exec.go nsinit/main.go nsinit/nsenter.go nsinit/oom.go sample_configs/host-pid.json sample_configs/userns.json security/capabilities/capabilities.go update-vendor.sh
27 lines
673 B
Makefile
27 lines
673 B
Makefile
|
|
all:
|
|
docker build -t dockercore/libcontainer .
|
|
|
|
test:
|
|
# we need NET_ADMIN for the netlink tests and SYS_ADMIN for mounting
|
|
docker run --rm -it --privileged dockercore/libcontainer
|
|
|
|
sh:
|
|
docker run --rm -it --privileged -w /busybox dockercore/libcontainer nsinit exec sh
|
|
|
|
GO_PACKAGES = $(shell find . -not \( -wholename ./vendor -prune -o -wholename ./.git -prune \) -name '*.go' -print0 | xargs -0n1 dirname | sort -u)
|
|
|
|
direct-test:
|
|
go test $(TEST_TAGS) -cover -v $(GO_PACKAGES)
|
|
|
|
direct-test-short:
|
|
go test $(TEST_TAGS) -cover -test.short -v $(GO_PACKAGES)
|
|
|
|
direct-build:
|
|
go build -v $(GO_PACKAGES)
|
|
|
|
direct-install:
|
|
go install -v $(GO_PACKAGES)
|
|
local:
|
|
go test -v
|