Skip to content

Latest commit

 

History

History
110 lines (100 loc) · 4.19 KB

ubuntu2004.md

File metadata and controls

110 lines (100 loc) · 4.19 KB

Installation:

This is a walk through on how to install dependencies for CATs on Ubuntu 20.04 LTS.

Ubuntu 20.04 Dependencies

mkdir ~/install
cd install
sudo apt update
sudo apt upgrade
sudo apt install wget build-essential ca-certificates
sudo apt install libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install curl dpkg apt-transport-https gnupg software-properties-common git zlib1g-dev
  • Installation:
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu focal stable"
    apt-cache policy docker-ce
    sudo apt install docker-ce
    docker --version
  • Manage Docker as a non-root user:
    sudo usermod -aG docker ${USER}
    echo <user password> | su - ${USER}
    groups
    sudo usermod -aG docker <username>
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo cp ./kubectl /usr/local/bin/kubectl
kubectl version -o json
  • Set KUBE_CONFIG_PATH:
echo 'export KUBE_CONFIG_PATH=~/.kube/config' >> ~/.profile
source ~/.profile
  • Generate Credentials
    • Create AWS IAM Users & Access Keys
    • Export AWS Access Keys to Bash Profile:
      echo 'export AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>' >> ~/.profile
      echo 'export AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>' >> ~/.profile
      source ~/.profile

Go (>= v3.13.1)

wget https://dl.google.com/go/go1.13.6.linux-amd64.tar.gz
sudo tar -zxvf go1.13.6.linux-amd64.tar.gz -C /usr/local
sudo echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile
sudo echo 'export GOPATH=$HOME/go' >> ~/.profile
source ~/.profile
go version
sudo apt install openjdk-11-jre
sudo apt install openjdk-11-jdk
sudo echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' >> ~/.profile
source ~/.profile
echo $JAVA_HOME
javac -version
java -version

Scala: 2.11.12

wget https://downloads.lightbend.com/scala/2.11.12/scala-2.11.12.deb
sudo dpkg -i scala-2.11.12.deb
sudo apt-get update
scala -version
  echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
  echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
  curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
  sudo apt-get update
  sudo apt-get install sbt=1.5.5
  sbt sbtVersion

Ifrastructure as Code (IaC):

  • Install Terraform
    sudo apt-get update
    sudo apt-get install gnupg2
    curl https://apt.releases.hashicorp.com/gpg | gpg --dearmor > hashicorp.gpg
    curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
    sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
    sudo apt-get update 
    sudo apt-get install terraform=1.1.9
    terraform --version