Last active
June 1, 2016 23:04
-
-
Save dfabulich/e7d7078c5bbf780e6ab14af98ac5a887 to your computer and use it in GitHub Desktop.
Vagrantfile to reproduce Centos 7 without sandbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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