xpod

A minimal container build of X11 with VNC support.
git clone https://unitehenry.com/git/xpod.git
Log | Files | Refs | README

commit d5b76b1e686820f5c01da814b086c49b6018678d
parent eea3f09cb4aeac3f909c97740d125788acdcdf36
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 25 Jul 2026 04:13:43 +0000

ci: build and probe

Diffstat:
A.github/workflows/ci.yml | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Dscripts/probe-cdp | 2--
Dscripts/probe-vnc | 8--------
3 files changed, 50 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -0,0 +1,50 @@ +name: CI + +on: + push: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install podman + run: | + sudo apt-get update + sudo apt-get install -y podman + + - name: Build + run: scripts/build + + - name: Start xpod-chromium + run: | + mkdir -p chromium-lib + podman run -d --rm \ + --cap-add=SYS_ADMIN \ + -v ./chromium-lib:/var/lib/chromium \ + -e VNC_PASSWORD="vncpass" \ + -p 5900:5900 \ + -p 9222:9222 \ + --name xpod-chromium \ + xpod-chromium + sleep 8 + + - name: Probe VNC + run: | + PROBE_OUTPUT=$(podman run \ + --rm \ + -i \ + --add-host=host.docker.internal:host-gateway \ + alpine sh -c "apk add --no-cache netcat-openbsd >/dev/null 2>&1; nc -w 3 host.docker.internal 5900" | tail -n 1 | tr -d '\r') + + [ "$PROBE_OUTPUT" = "RFB 003.008" ] || { echo "Assertion failed: got '$PROBE_OUTPUT'"; exit 1; } + + - name: Probe CDP + run: curl http://127.0.0.1:9222/json/version + + - name: Cleanup + if: always() + run: podman stop xpod-chromium || true diff --git a/scripts/probe-cdp b/scripts/probe-cdp @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -curl http://127.0.0.1:9222/json/version diff --git a/scripts/probe-vnc b/scripts/probe-vnc @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -PROBE_OUTPUT=$(podman run \ - --rm \ - -i \ - --add-host=host.docker.internal:host-gateway \ - alpine sh -c "apk add --no-cache netcat-openbsd >/dev/null 2>&1; nc -w 3 host.docker.internal 5900" | tail -n 1 | tr -d '\r') - -[ "$PROBE_OUTPUT" = "RFB 003.008" ] || { echo "Assertion failed: got '$PROBE_OUTPUT'"; exit 1; }