/maludb-os-docker:os-dockerfrom maludb-os-docker
Working on a MaluDB Business OS that runs as the dockerized install — the `bos` container from maludb-os-docker (host-install.sh) on a MaluDB hosting VM, with PostgreSQL 17 and the MaluDB API on the host. Use before ANY work on such an install — building or changing an application, changing the kernel, adding an application, setting keys, reading logs, upgrading — and whenever the user mentions the bos container, docker compose, bos-init, bos.env, host-install.sh, bos-set-keys.sh or bos-app.sh. It says what lives in the image, on the volumes and on the host, which of those a change must land in, how every kernel command is run (docker exec), and what never to do.
Ships in maludb-os-docker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The dockerized install (github.com/maludb/maludb-os-docker) runs the whole kernel stack of maludb-os-core
docs/install.md §3–§13 as one systemd container named bos on a MaluDB hosting VM. PostgreSQL 17 (with
maludb_core) and the MaluDB API (:8000) stay on the host; the container reaches them as pg-host
(172.30.0.1). Everything else — Apache/PHP, the Next.js front end, the four MCP servers, the agent runner, cron,
the pinned Claude Code CLI — runs inside. Help Desk and Spaces are installed at first boot; every other
application is installed later from its repository.
Claude Code runs on the host VM (where maludb-os-docker is cloned and docker is available), or on a
developer's machine for an application's own repository. It does not run inside the container: the container's
code layer is disposable and its only shells are docker exec.
| Layer | Holds | Lifetime | A change lands here by |
|---|---|---|---|
The image (ghcr.io/maludb/maludb-business-os:<tag>, or built here) | the kernel at /var/www (checked out at OS_CORE_REF), its venv, the built Next.js app, the Claude CLI, the integration plugin at /opt/maludb-os-integration, pre-fetched Help Desk and Spaces at /opt/app-cache/ | until the next docker compose up -d with a new image | a new image (os-docker-kernel) — never by editing inside |
The volumes (bos-etc → /etc/business-os, bos-config → /var/www/config, bos-storage, bos-srv-apps → /srv/apps, bos-var-lib → /var/lib/business-os) | secrets, config/.env, runner.env, the init markers, the installed applications' checkouts and their config/.env, agent workspaces | across image upgrades and container recreates | git in /srv/apps/<key> + the kernel's installer (os-docker-change-app), bos-set-keys.sh for keys |
| The host | PostgreSQL: certstudy, every application's database, the tenant's memory database; /etc/business-os-docker/bos.env (the container's whole configuration, root 600) and bos_admin.pw | the VM's | migrations run through the container's psql shim; host-install.sh / bos-set-keys.sh for bos.env |
Read references/topology.md for the paths, ports, names, who dials whom and the
boot sequence (bos-init: phase A every boot, phase B once, phase C every boot). The command book is
references/commands.md; symptoms and their causes are in
references/troubleshooting.md.
Every kernel command is the documented command, inside the container, as root:
docker exec bos php /var/www/bin/app_install.php plan https://github.com/maludb/maludb-os-hr.git --by <admin email> --domain <domain> --scheme https
docker exec -u www-data bos php /var/www/bin/hire_application_agent.php --app hr --agent expert --by <admin email>
docker exec bos systemctl status maludb-os-agent-runner
docker exec bos journalctl -u bos-init -n 100 --no-pager
docker exec bos psql -d certstudy -Atc "select app_key, status from applications" # the shim: root → bos_admin on the host
For an application, prefer the wrapper in this repository, sudo ./bos-app.sh plan|apply|update|status|logs|list:
it runs the kernel's installer and then applies the two fixes the container's topology needs and the installer
does not know — DB_HOST=pg-host (the installer writes 127.0.0.1, where no PostgreSQL listens inside) and a port
for any *_PORT key left empty — re-applies so the vhost is rendered from the fixed env, restarts the application's
units, keeps a ledger of applied migrations so update can apply new ones, and never prints a secret.
os-docker-new-app.os-docker-change-app./var/www in the image): os-docker-kernel.references/commands.md.The two plugins that govern the code itself still govern it here: htmx-php-builder (how an application is built:
new-app, os-application, php-patterns, design-system, mcp-servers) and maludb-os-integration (how it
fits the kernel: os-integration, os-adopt, os-install). This plugin says only what the container changes.
/var/www is the image: an edit there is gone at the next image. /srv/apps/<key> is a
git clone of the application's repository on a volume: an edit there is a change nobody has in a repository. Change the repository,
then pull or rebuild.bos.env, /etc/business-os/secrets/*, /etc/business-os/admin-password, every config/.env and
runner.env hold keys and passwords; docker exec as root reads them all. grep -c '^KEY=' tells whether a key is set; its value
never reaches the terminal, a log or a commit. Keys are set with bos-set-keys.sh.docker compose down -v, never docker volume rm bos-*. bos-etc and bos-config hold SECRETS_KEY and APP_TOTP_KEY;
without them the encrypted data in PostgreSQL is unreadable. docker compose down (no -v) and up -d are safe: bos-init reconciles.docker compose up before host-install.sh has run on a VM — it writes bos.env and prepares the host's PostgreSQL.postgres from the container or paste bos_admin's password anywhere: the psql shim
(/usr/local/bin/psql) already connects root and postgres as bos_admin with the pgpass files bos-init writes.:80 vhosts; a name the kernel's agents must dial (<label>.<domain>)
works only once the owner's A record and TLS proxy exist (topology.md, "who dials whom"). Say so in every report; never fake it with
/etc/hosts.host-install.sh changed on the host (Docker CE, the bos_admin role and one pg_hba.conf block, the host Apache stopped,
/etc/business-os-docker/) is the whole list. Nothing else on the host is this install's to touch.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/os-docker-change-appChange an application that is INSTALLED in a dockerized MaluDB Business OS (the bos container) — Help Desk, Spaces, HR, Projects or any application of ours at /srv/apps/<key> on the bos-srv-apps volume. Use for "fix/extend/change <application>", "add a field/screen/tool to Help Desk", "update Spaces to the latest", "roll the app back", or when a change needs a migration on an installed application. It says where the change is made (the repository, never the installed copy), how a schema change ships, and how the change reaches the container — bos-app.sh update: pull, new migrations, reconcile, restart — and what to verify./os-docker-kernelChange the MaluDB Business OS KERNEL (maludb-os-core — anything under /var/www in the image: PHP, the React app, the MCP servers, the agent runner, the installer, a kernel migration) for an install that runs as the bos container. Use for "change the kernel", "fix something in os./app.", "the installer needs …", "add a kernel migration", "upgrade the kernel", "build a new image", "pin OS_CORE_REF", or when a change an application needs must land in the kernel (a K-item). A kernel change is a new image; this skill says how to build, roll out, apply the migrations bos-init will not, verify and roll back./os-docker-new-appBuild a NEW application for a MaluDB Business OS that runs as the dockerized install (the bos container) and install it there. Use when the user wants a new application, module or "app" for their Business OS on Docker — "build me an app for …", "add an application to the OS", "new application in the container" — or asks how to develop one against a dockerized kernel. The application is its own repository built with htmx-php-builder (new-app, os-application) and fitted with maludb-os-integration (os-integration); this skill adds what the container changes: where to develop, what the manifest must declare so the container's installer works, where the proofs run, and how the application gets into the container and stays updatable.npx claudepluginhub maludb/maludb-os-docker --plugin maludb-os-docker