Skip to content

Instantly share code, notes, and snippets.

@dreampuf
Created May 4, 2018 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreampuf/6446936e84dc5c965ec947fb4080b032 to your computer and use it in GitHub Desktop.
Save dreampuf/6446936e84dc5c965ec947fb4080b032 to your computer and use it in GitHub Desktop.
Build gvisor from centos:latest container
git clone --depth 1 https://github.com/google/gvisor.git
cd gvisor
docker --rm -it "$PWD":/opt/gvisor -w /opt/gvisor centos bash
curl -O /etc/yum.repos.d/vbatts-bazel-epel-7.repo https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
yum install -y epel-release bazel gcc gcc-c++ git protobuf-devel protobuf-lite-devel
env CC=/usr/bin/gcc bazel build runsc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment