Skip to content

Commit

Permalink
Merge pull request #38128 from kolyshkin/runc
Browse files Browse the repository at this point in the history
Do not enable kmem on RHEL7 kernels
  • Loading branch information
thaJeztah committed Nov 12, 2018
2 parents 13e9563 + 8972aa9 commit a5e2dd2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
11 changes: 8 additions & 3 deletions hack/dockerfile/install/runc.installer
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion vendor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ github.com/pborman/uuid v1.0
google.golang.org/grpc v1.12.0

# This does not need to match RUNC_COMMIT as it is used for helper packages but should be newer or equal
github.com/opencontainers/runc 58592df56734acf62e574865fe40b9e53e967910
github.com/opencontainers/runc 9f1e94488e5e478e084fef997f022565b64b01d9
github.com/opencontainers/runtime-spec 5684b8af48c1ac3b1451fa499724e30e3c20a294 # v1.0.1-49-g5684b8a
github.com/opencontainers/image-spec v1.0.1
github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/opencontainers/runc/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions vendor/github.com/opencontainers/runc/libcontainer/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5e2dd2

Please sign in to comment.