|
@@ -1,13 +1,18 @@
|
|
|
#!/bin/sh
|
|
|
|
|
|
# When updating RUNC_COMMIT, also update runc in vendor.conf accordingly
|
|
|
-RUNC_COMMIT=a00bf0190895aa465a5fbed0268888e2c8ddfe85
|
|
|
+RUNC_COMMIT=9f1e94488e5e478e084fef997f022565b64b01d9
|
|
|
|
|
|
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 apparmor selinux"}"
|
|
|
+ RUNC_BUILDTAGS="${RUNC_BUILDTAGS:-"seccomp apparmor selinux $RUNC_NOKMEM"}"
|
|
|
|
|
|
- echo "Install runc version $RUNC_COMMIT"
|
|
|
+ echo "Install runc version $RUNC_COMMIT (build tags: $RUNC_BUILDTAGS)"
|
|
|
git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc"
|
|
|
cd "$GOPATH/src/github.com/opencontainers/runc"
|
|
|
git checkout -q "$RUNC_COMMIT"
|