diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2217cbc9c6a5..f82d95d5c34a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,19 @@ jobs: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} steps: + - name: Tianon's Moby + run: | + # https://github.com/tianon/debian-moby + # https://hub.docker.com/r/infosiftr/moby + dir="$(mktemp -d)" + dir="$(readlink -ve "$dir")" + mkdir -p "$dir/run" "$dir/var-lib-docker" + host="unix://$dir/run/docker.sock" + docker run -d --name moby --privileged --mount "type=bind,src=$PWD,dst=$PWD" --workdir "$PWD" --mount "type=bind,src=$dir,dst=$dir" infosiftr/moby dockerd --data-root "$dir/var-lib-docker" --host "$host" + printf 'DOCKER_HOST=%s\n' "$host" >> "$GITHUB_ENV" + export DOCKER_HOST="$host" + timeout 10s bash -Eeuo pipefail -xc 'while ! docker version; do sleep 1; done' + docker logs moby - uses: actions/checkout@v3 # TODO something clever with https://github.com/marketplace/actions/changed-files - name: Prepare Environment