mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b529d1b093
Originally I worked on this for the multi-stage build Dockerfile changes. Decided to split this out as we are still waiting for multi-stage to be available on CI and rebasing these is pretty annoying. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
17 lines
582 B
Bash
Executable file
17 lines
582 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# When updating RUNC_COMMIT, also update runc in vendor.conf accordingly
|
|
RUNC_COMMIT=6c55f98695e902427906eed2c799e566e3d3dfb5
|
|
|
|
install_runc() {
|
|
# Do not build with ambient capabilities support
|
|
RUNC_BUILDTAGS="${RUNC_BUILDTAGS:-"seccomp apparmor selinux"}"
|
|
|
|
echo "Install runc version $RUNC_COMMIT"
|
|
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"
|
|
make BUILDTAGS="$RUNC_BUILDTAGS" $1
|
|
mkdir -p ${PREFIX}
|
|
cp runc ${PREFIX}/docker-runc
|
|
}
|