car-tracker/ops/ci/install-docker-cli.sh
Antoine Vandeplanque ccd2896c82
All checks were successful
CI / Lint, PostgreSQL tests, and package (push) Successful in 12s
CI / Build and publish tested image (push) Successful in 1m29s
publish tested images and queue manual GitOps app runs
2026-10-01 16:15:35 +02:00

21 lines
800 B
Bash

#!/bin/sh
# Job containers are Debian-based Node images; install only the client/plugins.
# Docker Engine runs on the separate builder VM, accessed through its socket.
set -eu
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl
install -d -m 0755 /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
cat > /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-get update
apt-get install -y --no-install-recommends docker-ce-cli docker-buildx-plugin
docker version