commit e1f1b113fb91d4e9eb97cfd9504b959c83163a4c
parent 2dca03632ee4e0d07c2ee806a541bccccbc1e6a8
Author: Henry Unite <unitehenry@gmail.com>
Date: Sun, 19 Jul 2026 00:36:09 +0000
docs: readme
Diffstat:
| A | README.md | | | 46 | ++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 46 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -0,0 +1,46 @@
+# XPod
+
+A minimal container build of X11 with VNC support.
+
+## Build
+
+This project uses `podman` to build container images, but the `Containerfile` is interoperable with Docker as well. If you have `podman`, the following build scripts are available to use.
+
+```bash
+scripts/build
+```
+
+This `build` script will build the xpod base image and apps (currently only chromium). The `xpod-base` image is a minimal setup of X11, the VNC server, and a X Virtual Framebuffer.
+
+### App Support
+
+If you'd like to run another app on top of the `xbase-image`, the only requirement is that you mount a `/app.sh` to the root of the image.
+
+```Dockerfile
+COPY <<'EOF' /app.sh
+#!/bin/bash
+set -e
+
+socat TCP-LISTEN:9222,bind=0.0.0.0,reuseaddr,fork TCP6:[::1]:9222 &
+
+mkdir -p /var/lib/chromium
+chmod -R 777 /var/lib/chromium
+rm -rf /var/lib/chromium/profile/Singleton*
+
+CHROMIUM_WIDTH=${RESOLUTION%%x*}
+CHROMIUM_HEIGHT=${RESOLUTION#*x}; CHROMIUM_HEIGHT=${CHROMIUM_HEIGHT%%x*}
+
+su -c "chromium --disable-gpu --start-maximized --window-size=${CHROMIUM_WIDTH},${CHROMIUM_HEIGHT} --force-device-scale-factor=1 --remote-debugging-port=9222 --user-data-dir=/var/lib/chromium/profile" chrome
+
+EOF
+
+RUN chmod +x /app.sh
+```
+
+## Chromium Profiles
+
+The `xpod-chromium` image accepts an optional volume mount for porting chromium profiles after use.
+
+```bash
+podman run -v ./chromium-lib:/var/lib/chromium xpod-chromium
+```