github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/hack/dockerfile/install/runc.installer (about) 1 #!/bin/sh 2 3 # When updating RUNC_COMMIT, also update runc in vendor.conf accordingly 4 RUNC_COMMIT=4fc53a81fb7c994640722ac585fa9ca548971871 5 6 install_runc() { 7 # Do not build with ambient capabilities support 8 RUNC_BUILDTAGS="${RUNC_BUILDTAGS:-"seccomp apparmor selinux"}" 9 10 echo "Install runc version $RUNC_COMMIT" 11 git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" 12 cd "$GOPATH/src/github.com/opencontainers/runc" 13 git checkout -q "$RUNC_COMMIT" 14 if [ -z "$1" ]; then 15 target=static 16 else 17 target="$1" 18 fi 19 make BUILDTAGS="$RUNC_BUILDTAGS" "$target" 20 mkdir -p ${PREFIX} 21 cp runc ${PREFIX}/docker-runc 22 }