Skip to content

Instantly share code, notes, and snippets.

@alexkreidler
Last active February 22, 2017 18:14
Show Gist options
  • Save alexkreidler/737256bbc8f8fa93022663254a5dae46 to your computer and use it in GitHub Desktop.
Save alexkreidler/737256bbc8f8fa93022663254a5dae46 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Installs bazel for Ubuntu 14.04
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true | \
sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | \
sudo debconf-set-selections
sudo apt-get install oracle-java8-installer -y
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get install bazel -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment