Skip to content

Instantly share code, notes, and snippets.

@dfabulich
Last active June 1, 2016 23:04
Show Gist options
  • Save dfabulich/e7d7078c5bbf780e6ab14af98ac5a887 to your computer and use it in GitHub Desktop.
Save dfabulich/e7d7078c5bbf780e6ab14af98ac5a887 to your computer and use it in GitHub Desktop.
Vagrantfile to reproduce Centos 7 without sandbox
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.provision "shell", run: "always", inline: <<-SHELL
set -x
sudo yum -y -q install wget java-1.8.0-openjdk-devel
sudo yum -y -q group install "Development Tools"
wget -q https://github.com/bazelbuild/bazel/releases/download/0.2.3/bazel-0.2.3-installer-linux-x86_64.sh
chmod +x bazel-0.2.3-installer-linux-x86_64.sh
sudo ./bazel-0.2.3-installer-linux-x86_64.sh
export PATH=$PATH:/usr/local/bin
which bazel
touch WORKSPACE
echo "genrule(name='x', outs=['x.txt'], cmd='echo hello > \\\$@')" > BUILD
bazel build //:x
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment