- Go to https://console.cloud.google.com and login with your credential
Don't put any of recovery method. Just
Confirm
- Make sure project name on the top left is
Opsta DevOps for Developer
If your language is not English. Go to https://console.cloud.google.com/user-preferences/languages and change language to
English (United States)
- Click on
Activate Cloud Shell
icon on the top right - Click on
Open in new window
icon on the top right of Cloud Shell to open Cloud Shell in new tab
curl -s https://raw.githubusercontent.com/opsta/gitops-workshop/master/scripts/cloud-shell-prepare.sh | sudo bash
- Put this command to generate your SSH key
ssh-keygen -f ~/.ssh/id_rsa -N ""
You will have your SSH private and public key in
~/.ssh/
directory
sudo apt update
sudo apt install -y openssl
sudo curl -L https://github.com/docker/compose/releases/download/1.27.4/docker-compose-`uname -s`-`uname -m` \
-o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
# This is required when you want to run docker-compose command
export LD_LIBRARY_PATH="/usr/local/lib"
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
helm version
curl -s https://toolkit.fluxcd.io/install.sh | sudo bash
In case your Cloud Shell having problem and you want to remove all the data to reset Cloud Shell
- Put this command to remove all the files in your $HOME directory
sudo rm -rf $HOME
- Click on
vertical three dot
icon on the top right for more menu and chooseRestart
Next: Preparation