fix(docker): skip locally built images on update; auto-update switch moves to env #74
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/docker-buildable-and-autoupdate-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
sftp: { build: ./sftp, image: paperless-sftp:local }. The update randocker compose up -d --pull always, which asks Docker Hub forpaperless-sftp:local, so the whole stack failed withpull access denied for paperless-sftp, repository does not exist.pull_policy: builddoes not help, because the CLI flag overrides it.opsdeck.auto-update: "true"showed a green "auto 02:00-05:00" badge, but thedocker:auto-updateschedule was disabled and had never run. That is why caddy was never updated. On top of that, the schedule was redeclared withenabled: falseon every boot, so turning it on in the UI only lasted until the next restart.Commits
27abb0bfix(docker): an image built here no longer fails the stack update970e442feat(docker): show when auto-update is opted in but switched offe569376feat(docker)!: turn auto-update on from the deployment, not the pageChanges
composeUpwithpullnow runscompose pull --ignore-buildable [-- service]first, thencompose up -dwithout--pull. Stack updates, single-container updates and auto-update all go through this path.composeArgsno longer emits--pull always.OPSDECK_MOD_DOCKER_AUTO_UPDATE.true,1,yesoronturns it on. Anything else, or unset, means off.POST /auto-updateand the on/off actions in the UI schema are removed.AUTO_UPDATEis added todocs/configuration.md, and CLAUDE.md and the code comments are updated.⚠️ Breaking change
Set
OPSDECK_MOD_DOCKER_AUTO_UPDATE=truein the deployment to keep auto-update running.Notes
pull --ignore-buildableneeds compose v2.12 or newer./storage/schedules/:name) and core's/schedules/:id/enabledstill store their enabled flag in the app's database. They are candidates for the same move to env vars in a follow-up.Verification
deno task testfor the docker module: 1049 tests passed, 0 failed.deno task check,check:svelte,deno lintanddeno fmtare clean.🤖 Generated with Claude Code
fix(docker): skip locally built images on update; show when auto-update is switched offto fix(docker): skip locally built images on update; auto-update switch moves to envMerged
maininto this branch (cc178ef) to resolve a conflict caused by #73 landing.The conflict was in
StacksPage.svelte. #73 added a busy guard totoggleAuto, but this PR deletestoggleAutotogether withPOST /auto-update, so I kept the deletion. Nothing else conflicted.After the merge:
packages/server/tests: 188 passeddeno task check,check:svelte(0 errors),deno lintanddeno fmt --check: cleanThe review request to @julian still stands.