Add demo-content-init.yml/.sh: whenever DEMO_USERS is "true", this seeds
admin's personal space (Welcome.md, notes) and a "Demo Space" project space
(a themed "Aurora" document-review project: planning docs, a real .drawio
diagram, meeting notes, and a 06-Format-Showcase/ folder covering every
common file type - txt/md/html/url/docx/xlsx/pptx/odt/ods/odp/rtf/odg/pdf,
seven picture formats, and five video containers - plus markdown files
exercising every object type the editor supports, a full Mermaid diagram
gallery, and ~38 highlight.js language code blocks) on first startup, then
adds the standard demo users (einstein, marie, moss, richard, katherine) as
editors of the Demo Space. The container is always present in the compose
graph but the script no-ops immediately unless DEMO_USERS is "true", and is
idempotent on reruns (finds the existing space/members rather than
duplicating, tolerates already-existing folders).
This needs oCIS Basic Auth, since oCIS's OIDC has no password grant for a
script like this to use - PROXY_ENABLE_BASIC_AUTH now defaults to following
DEMO_USERS (still independently overridable) rather than a hardcoded
"false". The script itself talks to oCIS directly over the internal docker
network (http://ocis:9200) rather than through Traefik, so it never has to
deal with the self-signed certificate either.
API calls (space creation, invite, role UUIDs) were verified by capturing
the real requests oCIS Web itself makes for the same actions, and the full
script was tested end to end against a running stack, including its
no-op/idempotent paths, before writing this commit.
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>