-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
343 changed files
with
389 additions
and
12,737 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Set up Docker" | ||
description: "Ensure Docker is installed and configured correctly" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup and configure docker | ||
shell: 'script -q -e -c "bash {0}"' | ||
run: | | ||
[[ $EUID -ne 0 ]] && exec sudo /bin/sh "$0" "$@" | ||
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; \ | ||
do apt-get remove $pkg; \ | ||
done | ||
apt-get update | ||
apt-get install ca-certificates curl | ||
install -m 0755 -d /etc/apt/keyrings | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | ||
chmod a+r /etc/apt/keyrings/docker.asc | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | ||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | ||
tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
apt-get update | ||
cat << EOF >/etc/docker/daemon.json | ||
{ | ||
"features": { | ||
"containerd-snapshotter": true | ||
}, | ||
"registry-mirrors": ["https://ghcr.io/tkhq"] | ||
} | ||
EOF | ||
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
systemctl restart docker | ||
docker buildx create --driver docker-container --bootstrap --name build --use |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.