diff --git a/.gitea/workflows/_probe-runner.yml b/.gitea/workflows/_probe-runner.yml index d1efac7..6ae1a19 100644 --- a/.gitea/workflows/_probe-runner.yml +++ b/.gitea/workflows/_probe-runner.yml @@ -6,34 +6,27 @@ on: jobs: probe: runs-on: arch-host - timeout-minutes: 5 + timeout-minutes: 15 steps: - name: Probe run: | set +e id - uname -a - cat /etc/os-release - echo "--- tools" - for c in docker podman sudo pacman unshare bwrap buildah arch-chroot; do - printf '%s: ' "$c"; command -v "$c" || echo absent - done - echo "--- sockets" - ls -l /var/run/docker.sock /run/docker.sock /run/podman/podman.sock 2>&1 - echo "--- devices" - ls -l /dev/loop-control /dev/loop0 /dev/fuse 2>&1 - echo "--- caps" - grep -E 'Cap(Eff|Bnd)' /proc/self/status - echo "--- cgroup" - cat /proc/1/cgroup - echo "--- mount tmpfs" - mkdir -p /tmp/probe-mnt; mount -t tmpfs tmpfs /tmp/probe-mnt 2>&1; echo "rc=$?"; umount /tmp/probe-mnt 2>/dev/null - echo "--- unshare" - mkdir -p /tmp/probe-mnt2 - unshare --map-root-user --mount --pid --fork --mount-proc sh -c 'mount -t tmpfs tmpfs /tmp/probe-mnt2 && echo UNSHARE_MOUNT_OK; umount /tmp/probe-mnt2' 2>&1; echo "rc=$?" - echo "--- bwrap" - bwrap --dev-bind / / --unshare-user --uid 0 --gid 0 --mount-tmpfs /tmp/probe-mnt3 sh -c 'echo BWRAP_OK' 2>&1; echo "rc=$?" - echo "--- docker" - docker info 2>&1 | head -5 - echo "--- podman" - podman info 2>&1 | head -5 + echo "PWD=$(pwd)" + echo "GITHUB_WORKSPACE=${GITHUB_WORKSPACE:-}" + ls -la "$PWD" | head + echo "--- sudo" + sudo -n true; echo "sudo_rc=$?" + echo "--- docker cli" + sudo pacman -Sy --needed --noconfirm --quiet docker + docker version 2>&1 | head -20 + echo "--- images" + docker images --format '{{.Repository}}:{{.Tag}}' 2>&1 | head + echo "--- privileged container with workspace bind mount" + docker run --rm --privileged -v "$PWD:$PWD" -w "$PWD" archlinux:latest sh -c ' + id + mount -t tmpfs tmpfs /mnt && echo MOUNT_OK; umount /mnt + ls -l /dev/loop-control /dev/loop0 2>&1 + echo "workspace files:"; ls | head + ' 2>&1 + echo "rc=$?"