Last active
May 10, 2021 09:08
-
-
Save HsimWong/f062701d43be69d8eb86f11352eaf087 to your computer and use it in GitHub Desktop.
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
echo "Installing docker and its components\n" | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt install -y docker-ce | |
echo "Provisioning environment for kubernetes" | |
echo "----------------------------------------" | |
# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
sudo add-apt-repository deb https://mirrors.tuna.tsinghua.edu.cn/kubernetes/apt kubernetes-xenial main | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb | |
echo "Preparing virtualization environment" | |
sudo apt install libvirt-daemon libvirt0 libvirt-clients libvirt-bin -y | |
sudo chmod 777 /run/user/0/ | |
sudo chmod 777 /run/user/0/* | |
sudo systemctl restart libvirtd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment