summaryrefslogtreecommitdiff
path: root/hack/dockerfile
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2021-08-23 10:16:11 +0200
committerSebastiaan van Stijn <github@gone.nl>2021-09-02 21:22:24 +0200
commit3c7c18a4992138ccd6e1d2a63b5ca44327f663bd (patch)
tree85676ad43ceaf4927a4351c9756476adc31f7c58 /hack/dockerfile
parent8fa6126f75f255805fb7f6ffa716d03b4cc7f76d (diff)
downloaddocker-3c7c18a4992138ccd6e1d2a63b5ca44327f663bd.tar.gz
remove deprecated "nokmem" build-tag for runc
This build-tag was removed in https://github.com/opencontainers/runc/commit/52390d68040637dfc77f9fda6bbe70952423d380, which is part of runc v1.0.0-rc94 and up, so no longer relevant. the kmem options are now always disabled in runc. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'hack/dockerfile')
-rwxr-xr-xhack/dockerfile/install/runc.installer9
1 files changed, 2 insertions, 7 deletions
diff --git a/hack/dockerfile/install/runc.installer b/hack/dockerfile/install/runc.installer
index b7ad9eb502..d73534846d 100755
--- a/hack/dockerfile/install/runc.installer
+++ b/hack/dockerfile/install/runc.installer
@@ -1,4 +1,5 @@
#!/bin/sh
+set -e
# When updating RUNC_COMMIT, also update runc in vendor.conf accordingly
# The version of runc should match the version that is used by the containerd
@@ -7,13 +8,7 @@
: ${RUNC_COMMIT:=52b36a2dd837e8462de8e01458bf02cf9eea47dd} # v1.0.2
install_runc() {
- # If using RHEL7 kernels (3.10.0 el7), disable kmem accounting/limiting
- if uname -r | grep -q '^3\.10\.0.*\.el7\.'; then
- : ${RUNC_NOKMEM='nokmem'}
- fi
-
- # Do not build with ambient capabilities support
- RUNC_BUILDTAGS="${RUNC_BUILDTAGS:-"seccomp $RUNC_NOKMEM"}"
+ RUNC_BUILDTAGS="${RUNC_BUILDTAGS:-"seccomp"}"
echo "Install runc version $RUNC_COMMIT (build tags: $RUNC_BUILDTAGS)"
git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc"