-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunner-setup.sh
More file actions
28 lines (22 loc) · 919 Bytes
/
Copy pathrunner-setup.sh
File metadata and controls
28 lines (22 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
USERNAME=maxkratz
# utilities + sudo
apt-get update
apt-get install -yq sudo tmux htop wget grep sed gpg unzip tar curl
/sbin/adduser $USERNAME sudo
# Docker
# Add Docker's official GPG key:
apt-get update
apt-get install -yq ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -yq docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
echo "=> Prerequisites installed. Ready for GitHub Actions runner installation."