summaryrefslogtreecommitdiff
path: root/new/install-dependencies.sh
blob: 6dfe839765192f149b96bd1bd078ccc30990efd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -e

# You can use this script to install dependencies under Debian.
# If you don't use Debian then find and install equivalent of these dependencies via your favorite package manager.
# For Python dependencies you can as well use pip install but then everything should be done inside venv/virtualenv.

sudo apt-get update -y

# general packages
sudo apt-get install -y git gpg reprepro

# python dependencies (python3-yaml is pyyaml)
sudo apt-get install -y python3 python3-yaml python3-requests python3-pendulum python3-netifaces python3-tomlkit

# docker
if [ ! -f /etc/apt/sources.list.d/docker.list ]; then
  sudo curl -s -S --fail-with-body https://download.docker.com/linux/debian/gpg -o /usr/share/keyrings/docker.asc
  echo "deb [signed-by=/usr/share/keyrings/docker.asc]" https://download.docker.com/linux/debian bookworm stable | sudo tee /etc/apt/sources.list.d/docker.list
fi
sudo apt-get update -y
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin