Bazel isntall code example

Example: bazel instal

########################################
#### Install Using Homebrew (MacOS) ####
########################################
brew tap bazelbuild/tap
brew install bazelbuild/tap/bazel

# Confirm you installation
bazel --version

########################################
#### Install Custom Ubuntu APT Repo ####
########################################
sudo apt install curl gnupg
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

sudo apt update && sudo apt install bazel
sudo apt update && sudo apt full-upgrade
sudo apt install bazel-1.0.0

# Install JDK (Needed for Java only)
# Ubuntu 16.04 (LTS) uses OpenJDK 8 by default:
sudo apt install openjdk-8-jdk

# Ubuntu 18.04 (LTS) uses OpenJDK 11 by default:
sudo apt install openjdk-11-jdk