mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
b6a9bdb38f
Some workloads rely on IPC for communications with other processes. We would like to split workloads between two container but still allow them to communicate though shared IPC. This patch allows us to mimic the --net code to allow --ipc=host to not split off the IPC Namespace. ipc=container:CONTAINERID to share ipc between containers Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
25 lines
642 B
Makefile
25 lines
642 B
Makefile
|
|
all:
|
|
docker build -t docker/libcontainer .
|
|
|
|
test:
|
|
# we need NET_ADMIN for the netlink tests and SYS_ADMIN for mounting
|
|
docker run --rm -it --privileged docker/libcontainer
|
|
|
|
sh:
|
|
docker run --rm -it --privileged -w /busybox docker/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)
|