From 114b364cefaeb1c2050437499dbe6759cf351f7e Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 4 Dec 2026 13:12:46 -0700 Subject: [PATCH] Snipe-IT rehearsal: slow starts, image volumes, HTML-as-text mail Deploy waits up to 5 minutes for an app to answer, printing its last log line every 30 s, and stops early when the container exits or restarts three times. It notes VOLUMEs the image declares outside /data, and uninstall removes anonymous volumes (down -v). coreapp inbox renders HTML sent in a text/plain part. Skill: no first-come setup wizard even without sso (admin at startup, password by reset), no new sign-in code for apps without OIDC, upstream scripts that read shell variables, a step between upstream steps, the image's VOLUMEs, a slow first install, three-part min_version. Co-Authored-By: Claude Opus 5.5 --- PLAN.md | 23 ++++++++++++++- TEST.md | 13 +++++++- core/coreapps | 44 +++++++++++++++++++++++++--- core/templates/uninstall | 7 +++-- skills/coreapp/SKILL.md | 13 +++++--- skills/coreapp/references/porting.md | 25 +++++++++++++++- skills/coreapp/references/sign-in.md | 2 +- 7 files changed, 112 insertions(+), 15 deletions(-) diff --git a/PLAN.md b/PLAN.md index fb09808..32d2cbb 100644 --- a/PLAN.md +++ b/PLAN.md @@ -554,7 +554,28 @@ Steps: claims, testing a new account's first sign-in - [ ] David: sign in to leantime as admin@dev.fedcom.net (owner; a project, a task, an upload); remove it when done - - [ ] A MySQL-only app, to rehearse `mysql` + - Rehearsed 2026-12-04 with Snipe-IT (upstream Laravel image; + mysql, email): deployed at `https://snipe-it.dev.fedcom.net/`, + CORE_ADMIN_EMAIL made admin at startup (username `admin`, no known + password; set by password reset), its setup wizard skipped, a reset + mail read with `coreapp inbox`, the test account `coreapp.test` + made there. No `sso`: Snipe-IT has no OpenID Connect sign-in (only + passwords, LDAP and SAML), and writing one is out of scope. Fixed + from it: deploy waited only 60 s for a first start that runs + hundreds of migrations; it now waits 5 minutes, prints the app's + last log line every 30 s, and stops early on a crash loop. Deploy + notes an image's `VOLUME`s outside `/data` (Snipe-IT's storage), + uninstall removes anonymous volumes (`down -v`), and `coreapp + inbox` renders HTML sent as text/plain. Skill: no first-come + setup wizard even without `sso` (admin at startup, password by + reset), apps without OIDC aren't given sign-in code, upstream + scripts that read shell variables, a step between upstream steps + (run its migrations yourself, then `exec` it), the image's + `VOLUME`s, a slow first install, `min_version` with three parts + - [x] David: set admin's password by reset and signed in + (2026-12-04) + - [ ] David: in snipe-it, an asset and an upload; remove it when + done - [ ] David: sign in to listmonk-app as admin@dev.fedcom.net (Super Admin, Settings), and send a campaign from `listmonk-app@dev.fedcom.net`; remove it when done diff --git a/TEST.md b/TEST.md index 8b9cb75..ec48587 100644 --- a/TEST.md +++ b/TEST.md @@ -258,6 +258,16 @@ The Core's own scripts trace secrets, so their output goes to deploys; breaking it again in an update gives the same message with the wget error, rolls back, and right after "Rolled back" the public address answers 200 (the rollback waits for traefik). +5g. A slow start (`coreapp new slowtest`, with `CMD` sleeping 40 s, + logging "migrating", before the server): deploy prints "still starting + (31 s); its log: migrating", then "Installed". A container that exits + or restarts three times stops the wait at once with its state and log; + one that never answers stops after 5 minutes ("doesn't answer at ... + after 300 s"). +5h. An image declaring `VOLUME /var/www/storage` (outside `/data`): deploy + prints "Note: the image declares VOLUME /var/www/storage ..." and + installs. `coreapp remove` removes its anonymous volume too (`docker + volume ls -q` shows none left; uninstall runs `down -v`). 6. `coreapp status` (address and port), `coreapp logs`, `coreapp shell` (exit with `exit`), `coreapp shell 'id; echo $APP_URL'` (prints both, no terminal needed, also when piped), `coreapp list` (all apps installed @@ -520,7 +530,8 @@ has the `DB_*` variables, `.coreapp` says `needs=postgres`. >", its subject and text with the `/reset/...` link. An HTML-only message shows as text, `Confirm ` for a link, without its `