From e9f4f4b7d406dd76f812fe4fadb1586ed7706ac3 Mon Sep 17 00:00:00 2001 From: freitasgst Date: Thu, 5 Sep 2024 10:37:04 -0300 Subject: [PATCH] add customize image for docker --- .github/workflows/release.yml | 2 +- customize-qemu-docker.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 customize-qemu-docker.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7994e1..8d1ee82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: strategy: matrix: - variant: [qemu] + variant: [qemu, qemu-docker] steps: - name: Checkout diff --git a/customize-qemu-docker.sh b/customize-qemu-docker.sh new file mode 100644 index 0000000..79c6415 --- /dev/null +++ b/customize-qemu-docker.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Add Docker's official GPG key +curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc + +# Add Docker's official repository to Apt sources +cat > /etc/apt/sources.list.d/docker.list <<-EOF + deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(lsb_release -cs) stable +EOF + +# Install packages +apt-get --yes update +apt-get --yes install qemu-guest-agent htop docker-ce