31 lines
3.5 KiB
Markdown
31 lines
3.5 KiB
Markdown
# CMS Git deployment domain
|
|
|
|
Source: SILVER/DC_CMS, repository 33, master. Push → qualification → Gitea artifact → outbound durable queue → canonical installer.
|
|
|
|
The Device Core runner is scoped only to its own repository. CMS therefore registers its own build-runner in project nodedc-cms-ci, with the accepted Synology v4 resource and isolation profile. Existing Device Core registration, source and units are untouched. Both pinned images must already exist; bootstrap pulls neither. New runner registration is repository-scoped, staged separately from artifacts, imported to root0600 and removed from handoff storage. No credentials appear in Git, receipts or workflow artifacts.
|
|
|
|
`dc-cms-autodeploy` bootstraps exactly three source files under /volume1/docker/nodedc-cms-autodeploy, one build-runner service and two systemd units. Root-private queue state is /var/lib/nodedc-cms-autodeploy. Its read-only Gitea client uses the existing private Device Core read identity without copying it; preflight checks actual access to repository 33. The installed canonical receipt gates polling. Bootstrap preserves all preexisting containers and CMS data; rollback removes only the new runner/units/source partition, retaining private enrollment and queue for diagnosis.
|
|
|
|
`dc-cms-release` allows only flat admin/server application files and two exact dependency files. The initial predecessor is original CMS commit 4c6f133 with SMB-verified hashes in baseline.json. Foundation pins adm-zip 0.6.1 in foundation.json to fix known ZIP vulnerabilities. No later dependency, Dockerfile, Compose or Caddy change is admitted by this domain. Build uses the existing Dockerfile in an isolated temporary context with an empty projects directory. The canonical installer restarts only cms-app with no dependencies, no image pull and no rebuild during rollback. Acceptance verifies authentication, app hashes inside the running container, image generation, fixed ZIP dependency version, preserved env/mounts/networks/ports, other Compose services and site/project data.
|
|
|
|
## Build and checks
|
|
|
|
`python3 infra/cms-deploy/embed_runtime.py` refreshes only the explicitly marked standalone section. Registry and dispatcher wiring are ordinary reviewed runner source. Runtime never imports the fragment files from SMB.
|
|
|
|
`python3 -m unittest discover -s infra/cms-deploy -p 'test_*.py'`
|
|
`python3 -m unittest discover -s infra/deploy-runner -p 'test_device_core_*.py'`
|
|
`python3 infra/cms-deploy/build_autodeploy.py --output-dir <directory>`
|
|
|
|
Before production: SHA-pinned root runner promotion and verify-install; then fresh canonical plan/apply of the bootstrap artifact. Ordinary CMS pushes afterward need no operator NAS commands. A queued or green Actions run alone is not deployment evidence; require canonical receipt and product acceptance.
|
|
|
|
Bootstrap 002 corrects the initial POSIX inventory: the NAS contains a Synology
|
|
`server/@eaDir/admin-server.mjs@SynoEAStream` file hidden from SMB. The original
|
|
application and foundation hashes were confirmed unchanged through both paths.
|
|
Only flat `admin|server/@eaDir/<present-application-file>@SynoEAStream` regular
|
|
files are classified as metadata. Orphaned streams, unknown paths and symlinks
|
|
remain errors. Metadata is excluded from application identity and clean image
|
|
build inputs, and preserved byte-for-byte across application release/rollback.
|
|
The same partition handles old images containing these non-code streams; all
|
|
application hashes are still exact. Bootstrap 001 failed during read-only plan,
|
|
never entered apply, and is superseded rather than retried or overwritten.
|