Install apps from their repository, including private ones

coreapps plan|install <https://host/owner/repo>[@tag] reads only
coreapp.toml and icon.png at the tag's commit (depth 1, blobs on demand,
regular files only), with git limited to https and no prompts or system
settings. The default tag is the newest numeric release; version must
match the tag; the image is always pulled. The marker records source,
tag and commit; the same name from another repository is refused.
coreapps update <name> moves to the newest release. On the workstation:
coreapp install <url> (shows the app and its needs, asks) and update.

Private apps: coreapps login <host> <user> keeps a read-only token (from
stdin) in /etc/coreapps/credentials (root only), checked with the host's
registry first. git gets it as an extraHeader for that host only, docker
in a config made for each pull. coreapp login/logout/logins on the
workstation. Tested with a private repository and package on Federated's
Gitea.

Fixed: old images of docker.io/library/... weren't deleted (docker lists
them by short name); remove force-deleted images another app could use;
coreapp help cut off multi-line descriptions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 14:51:41 -07:00
co-authored by Claude Opus 5.5
parent ed2841f092
commit bef3b86970
6 changed files with 608 additions and 37 deletions
+12 -2
View File
@@ -296,8 +296,18 @@ Actions runner that can use Docker and the secrets `REGISTRY_USER` and
`REGISTRY_TOKEN`. When porting an existing app, copy it from a new app
(`coreapp new x`) if the user wants it.
Installing a published app on a Core from its repository URL isn't
available yet; for now, apps are installed with `coreapp deploy`.
To check a release the way a Core's owner will get it:
`coreapp install https://<gitea-host>/<owner>/<repo>` installs it on the
Core in the VM from the repository (the newest `v*` tag; `@v1.2.0` for
another), pulling the published image, and `coreapp update <name>` moves it
to a newer release. Coreapps are often private: for a private repository
and image, the Core needs a token for the host first, `coreapp login
<gitea-host>`, which asks for a user name and a read-only token
(repositories and packages). That's the user's to enter, not yours. The Core
only reads `coreapp.toml` and `icon.png` from the repository; `version` has
to match the tag. On the same Core, `coreapp deploy` from the folder and
`coreapp install` from the repository update the same app (same name, data
and database).
## Reporting back