Add the coreapp skill; fix /data ownership; deploy --recreate, shell <cmd>
skills/coreapp/SKILL.md teaches a Claude Code agent to make or port an app for Federated Core: coreapp.toml, the needs, porting an existing app, the deploy and test loop, troubleshooting, what isn't supported yet and how to report back. update.sh links it into ~/.claude/skills/coreapp; uninstall.sh removes the link. Rehearsed with a small app (memo-board) ported by a fresh agent using only the skill. The installer now gives /data to the image's user before starting the container: Docker created it as root, so non-root apps couldn't write. coreapp deploy --recreate always starts a new container (to test that data survives); coreapp shell '<command>' runs one command without a terminal. PLAN.md: what would change on the Core to put the installer in /federated/bin/coreapps/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,8 @@ sibling add https://gitea.federated.computer/Federated_Computer/coreapp-dev.git
|
||||
|
||||
This installs libvirt and QEMU/KVM, adds you to the `libvirt` group (log out
|
||||
and back in afterwards), sets up the `coreapp` VM network (10.123.0.0/24) and
|
||||
installs Docker and the `coreapp-vm` and `coreapp` commands. CoreDesktop's `update` keeps them current.
|
||||
installs Docker, the `coreapp-vm` and `coreapp` commands, and the `coreapp`
|
||||
skill for Claude Code. CoreDesktop's `update` keeps them current.
|
||||
|
||||
## A Core in a VM
|
||||
|
||||
@@ -78,9 +79,9 @@ each new app explains the files and the settings it gets.
|
||||
| `coreapp new --postgres <name>` | The same, with its own database on the Core's PostgreSQL (a Python example app that uses it) |
|
||||
| `coreapp new --sso <name>` | The same, with sign-in through the Core's Authelia (OpenID Connect; a Python example app) |
|
||||
| `coreapp new --postgres --sso <name>` | Both: a database and sign-in (the example counts each person's visits) |
|
||||
| `coreapp deploy` | Build its image, copy it to the Core over SSH, install it, or update it keeping its settings and data |
|
||||
| `coreapp deploy [--recreate]` | Build its image, copy it to the Core over SSH, install it, or update it keeping its settings and data (`--recreate`: a fresh container even if nothing changed) |
|
||||
| `coreapp check` | It answers at `https://<name>.<domain><health>` with a valid certificate |
|
||||
| `coreapp status` / `logs [-f]` / `shell` | Its container, its log, a shell in it |
|
||||
| `coreapp status` / `logs [-f]` / `shell [command]` | Its container, its log, a shell in it (or one command, without a terminal) |
|
||||
| `coreapp list` | The apps on the Core installed this way |
|
||||
| `coreapp remove` | Uninstall it from the Core, with its database and sign-in client (asks first) |
|
||||
|
||||
@@ -134,5 +135,6 @@ stay installed.
|
||||
| `templates/app/` | What `coreapp new` starts from |
|
||||
| `templates/postgres/`, `templates/sso/` | Example apps laid over it by `--postgres` / `--sso`: their files replace the base's; `*.append` files are added to the base file, `.remove` lists base files to drop, `.needs` goes into `needs` |
|
||||
| `templates/postgres-sso/` | The example app when both are used |
|
||||
| `skills/coreapp/` | A Claude Code skill for making apps; `update.sh` links it into `~/.claude/skills/` |
|
||||
| `uninstall.sh` | Removes what coreapp-dev set up |
|
||||
| [PLAN.md](PLAN.md), [TEST.md](TEST.md) | What's next, and how to test it |
|
||||
|
||||
Reference in New Issue
Block a user