Build runc with selinux support
docker-ce seems to be building runc with selinux support, let us follow the same pattern here please: https://github.com/docker/docker-ce/search?p=1&q=RUNC_BUILDTAGS&unscoped_q=RUNC_BUILDTAGS Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
d531dc492a
commit
e4ad53f2c2
2
Makefile
2
Makefile
@ -31,7 +31,7 @@ VERSION := $(shell git rev-parse --short HEAD)
|
|||||||
TARBALL_PREFIX := cri-containerd
|
TARBALL_PREFIX := cri-containerd
|
||||||
TARBALL := $(TARBALL_PREFIX)-$(VERSION).$(GOOS)-$(GOARCH).tar.gz
|
TARBALL := $(TARBALL_PREFIX)-$(VERSION).$(GOOS)-$(GOARCH).tar.gz
|
||||||
ifneq ($(GOOS),windows)
|
ifneq ($(GOOS),windows)
|
||||||
BUILD_TAGS := seccomp apparmor
|
BUILD_TAGS := seccomp apparmor selinux
|
||||||
endif
|
endif
|
||||||
# Add `-TEST` suffix to indicate that all binaries built from this repo are for test.
|
# Add `-TEST` suffix to indicate that all binaries built from this repo are for test.
|
||||||
GO_LDFLAGS := -X $(PROJECT)/vendor/github.com/containerd/containerd/version.Version=$(VERSION)-TEST
|
GO_LDFLAGS := -X $(PROJECT)/vendor/github.com/containerd/containerd/version.Version=$(VERSION)-TEST
|
||||||
|
@ -102,7 +102,7 @@ testing purposes. The version tag carries the suffix "-TEST".*
|
|||||||
To add build tags to the make option the `BUILD_TAGS` variable must be set.
|
To add build tags to the make option the `BUILD_TAGS` variable must be set.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make BUILD_TAGS='seccomp apparmor'
|
make BUILD_TAGS='seccomp apparmor selinux'
|
||||||
```
|
```
|
||||||
|
|
||||||
| Build Tag | Feature | Dependency |
|
| Build Tag | Feature | Dependency |
|
||||||
|
@ -32,7 +32,7 @@ if ${NOSUDO}; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# BUILDTAGS are bulid tags for runc and containerd.
|
# BUILDTAGS are bulid tags for runc and containerd.
|
||||||
BUILDTAGS=${BUILDTAGS:-seccomp apparmor}
|
BUILDTAGS=${BUILDTAGS:-seccomp apparmor selinux}
|
||||||
|
|
||||||
# checkout_repo checks out specified repository
|
# checkout_repo checks out specified repository
|
||||||
# and switch to specified version.
|
# and switch to specified version.
|
||||||
|
Loading…
Reference in New Issue
Block a user