Mock data mode and a script that generates screenshots #4

Closed
opened 2026-11-28 23:03:57 +00:00 by jfro · 0 comments
Owner

Add a way to run Krane on built-in mock data (containers, compose projects, volumes, images, logs) with no Docker daemon, and a script that uses it to produce the README screenshots without anyone clicking.

  • Mock mode: a flag or env var (e.g. --mock) that swaps the Docker source for fixtures. Realistic, varied example data; nothing personal.
  • Screenshot script (e.g. scripts/screenshots.sh): builds, launches in mock mode, captures each page (Containers with details, logs, Volumes, Images; the tray menu if it can be done reliably) at a fixed window size, writes PNGs to docs/screenshots/. Should run headless (Qt offscreen or Xvfb) and give the same output every run.

Done when one command regenerates every screenshot from a clean checkout.

Add a way to run Krane on built-in mock data (containers, compose projects, volumes, images, logs) with no Docker daemon, and a script that uses it to produce the README screenshots without anyone clicking. - Mock mode: a flag or env var (e.g. `--mock`) that swaps the Docker source for fixtures. Realistic, varied example data; nothing personal. - Screenshot script (e.g. `scripts/screenshots.sh`): builds, launches in mock mode, captures each page (Containers with details, logs, Volumes, Images; the tray menu if it can be done reliably) at a fixed window size, writes PNGs to `docs/screenshots/`. Should run headless (Qt offscreen or Xvfb) and give the same output every run. **Done when** one command regenerates every screenshot from a clean checkout.
jfro closed this issue 2026-11-29 00:44:26 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/krane#4
No description provided.