-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprepare_env.sh
executable file
·22 lines (19 loc) · 1.03 KB
/
prepare_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Install python essentials
sudo apt update
sudo apt install -y python3-pip python3-venv cmake linux-tools-common linux-tools-generic linux-tools-$(uname -r)
python3 -m pip install -U pip
# Install docker
sudo apt-get remove -y docker docker-engine docker.io containerd runc # Clean installation
sudo apt-get install -y ca-certificates curl gnupg lsb-release
sudo mkdir -m 0755 -p /etc/apt/keyrings
sudo rm /etc/apt/keyrings/docker.gpg
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 chmod a+r /etc/apt/keyrings/docker.gpg # Extra chmod to ensure the right rigths are set
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker