From 2375375b4de7b0bdec6be2aef855776a549212b4 Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Wed, 10 Jul 2024 06:46:41 -0700 Subject: [PATCH] ci(tools): emulate docker with podman before image builds (#1300) Signed-off-by: Thuan Vo --- .github/workflows/pr-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 524e53445..93366ea48 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -95,6 +95,12 @@ jobs: curl -fsSL $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_KEY_URL | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null sudo apt -y purge podman sudo apt update && sudo apt -y install podman + - name: Emulate docker with podman + run: | + mkdir -p $HOME/.bin + cat <(echo '#!/usr/bin/env bash') <(echo 'exec podman "$@"') > $HOME/.bin/docker + chmod +x $HOME/.bin/docker + echo "PATH=$HOME/.bin:$PATH" >> "$GITHUB_ENV" - name: Start Podman API run: systemctl --user enable --now podman.socket - name: Set DOCKER_HOST environment variable