-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
26 lines (18 loc) · 1.22 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
echo "$(date +"%Y/%m/%d %H:%M:%S") start installation..." >> instalation.log
#Docker
apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release 2>&1 >> instalation.log 2>&1
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg >> instalation.log 2>&1
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update >> instalation.log 2>&1
apt-get -y install docker-ce docker-ce-cli containerd.io >> instalation.log 2>&1
groupadd docker >> instalation.log 2>&1
usermod -aG docker golubyatnikov >> instalation.log 2>&1
#kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl >> instalation.log 2>&1
#Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
dpkg -i minikube_latest_amd64.deb >> instalation.log 2>&1
echo "$(date +"%Y/%m/%d %H:%M:%S") end installation..." >> instalation.log
#minikube start