Spit install into script and add step to install docker apt repo
Some checks failed
publish / docker (push) Failing after 48s
Some checks failed
publish / docker (push) Failing after 48s
This commit is contained in:
26
rustup/install-deps.sh
Normal file
26
rustup/install-deps.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt update || exit 1
|
||||
apt upgrade -y || exit 1
|
||||
apt install --no-install-recommends -y ca-certificates curl || exit 1
|
||||
apt install --no-install-recommends -y file || exit 1
|
||||
apt install --no-install-recommends -y build-essential musl-tools || exit 1
|
||||
apt install --no-install-recommends -y autoconf automake autotools-dev libtool xutils-dev || exit 1
|
||||
|
||||
# Docker key
|
||||
install -m 0755 -d /etc/apt/keyrings || exit 1
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc || exit 1
|
||||
chmod a+r /etc/apt/keyrings/docker.asc || exit 1
|
||||
tee /etc/apt/sources.list.d/docker.sources <<EOF
|
||||
Types: deb
|
||||
URIs: https://download.docker.com/linux/debian
|
||||
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
|
||||
Components: stable
|
||||
Architectures: $(dpkg --print-architecture)
|
||||
Signed-By: /etc/apt/keyrings/docker.asc
|
||||
EOF
|
||||
|
||||
apt update || exit 1
|
||||
apt install --no-install-recommends -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin || exit 1
|
||||
|
||||
rm -rf /var/lib/apt/lists/* || exit 1
|
||||
Reference in New Issue
Block a user