sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo usermod -aG docker $USER
no final do arquivo .profile adicionar
export DOCKER_BUILDKIT=1
fonte: https://docs.docker.com/engine/install/ubuntu/
adicione no /etc/wsl.conf
[boot]
command="service docker start"
sudo apt-get update
sudo apt-get install docker-compose-plugin
fonte: https://docs.docker.com/compose/install/compose-plugin/
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start --vm-driver=docker
minikube addons enable ingress
fonte: https://minikube.sigs.k8s.io/docs/start/
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
fonte: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
docker build -f DojoK8S/Dockerfile . -t dojok8s
docker run -d -p 8080:80 dojok8s
minikube image build -f DojoK8S/Dockerfile . -t dojok8s:2.0.0
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y dotnet-sdk-6.0
OBS: o dotnet só é necessário para desenvolver um exemplo a ser usado para subir no k8s. Logo esse passo não se faz necessário para o resto da instalação.
fonte: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu