Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Own Docker build context for shipped docs

rcourtman96894c32320f
diff --git a/.dockerignore b/.dockerignore
index 7e150eb624..e1df957558 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -6,6 +6,10 @@
*.md
docs/
dev-docs/
+!docs/
+!docs/**
+!SECURITY.md
+!TERMS.md
# Binaries and build artifacts
pulse
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index 6084f5899d..a6ebfe2a8d 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -2191,6 +2191,60 @@
"kind": "file"
}
]
+ },
+ {
+ "id": "RA24",
+ "summary": "Docker release builds must keep the embedded frontend's shipped-doc inputs available inside the container build context: `Dockerfile` and `.dockerignore` jointly own staging `docs/**`, `SECURITY.md`, and `TERMS.md` so hosted runtime image builds do not depend on workstation-local files or silently drop public docs from the frontend embed sync.",
+ "kind": "invariant",
+ "blocking_level": "repo-ready",
+ "proof_type": "automated",
+ "lane_ids": [
+ "L1"
+ ],
+ "subsystem_ids": [
+ "deployment-installability"
+ ],
+ "release_gate_ids": [],
+ "proof_commands": [
+ {
+ "id": "docker-release-build-shipped-doc-contract-tests",
+ "run": [
+ "go",
+ "test",
+ "./scripts/installtests",
+ "-run",
+ "TestDocker(AndDemoBuildsUseCanonicalReleaseLdflags|fileStagesShippedDocsForEmbeddedFrontendBuild)",
+ "-count=1"
+ ]
+ }
+ ],
+ "evidence": [
+ {
+ "repo": "pulse",
+ "path": ".dockerignore",
+ "kind": "file"
+ },
+ {
+ "repo": "pulse",
+ "path": "Dockerfile",
+ "kind": "file"
+ },
+ {
+ "repo": "pulse",
+ "path": "docs/release-control/v6/internal/status.json",
+ "kind": "file"
+ },
+ {
+ "repo": "pulse",
+ "path": "docs/release-control/v6/internal/subsystems/deployment-installability.md",
+ "kind": "file"
+ },
+ {
+ "repo": "pulse",
+ "path": "scripts/installtests/build_release_assets_test.go",
+ "kind": "file"
+ }
+ ]
}
],
"evidence_reference_policy": {
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index f264960288..0f100d9ebf 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -69,7 +69,7 @@ server-side update execution surfaces.
## Extension Points
1. Add or change deployment-type detection, update planning, or apply behavior through `internal/updates/`
-2. Add or change release-build metadata injection, release artifact assembly, or governed promotion metadata resolution through `scripts/build-release.sh`, `scripts/release_ldflags.sh`, `scripts/check-workflow-dispatch-inputs.py`, `scripts/release_control/resolve_release_promotion.py`, `Dockerfile`, `docs/releases/V6_PRERELEASE_RUNBOOK.md`, the operator dispatch helpers `scripts/trigger-release.sh` and `scripts/trigger-release-dry-run.sh`, and the governed release workflows `.github/workflows/create-release.yml`, `.github/workflows/deploy-demo-server.yml`, `.github/workflows/helm-pages.yml`, `.github/workflows/publish-docker.yml`, `.github/workflows/publish-helm-chart.yml`, `.github/workflows/promote-floating-tags.yml`, `.github/workflows/release-dry-run.yml`, and `.github/workflows/update-demo-server.yml`
+2. Add or change release-build metadata injection, Docker build-context allowlists, release artifact assembly, or governed promotion metadata resolution through `scripts/build-release.sh`, `scripts/release_ldflags.sh`, `scripts/check-workflow-dispatch-inputs.py`, `scripts/release_control/resolve_release_promotion.py`, `.dockerignore`, `Dockerfile`, `docs/releases/V6_PRERELEASE_RUNBOOK.md`, the operator dispatch helpers `scripts/trigger-release.sh` and `scripts/trigger-release-dry-run.sh`, and the governed release workflows `.github/workflows/create-release.yml`, `.github/workflows/deploy-demo-server.yml`, `.github/workflows/helm-pages.yml`, `.github/workflows/publish-docker.yml`, `.github/workflows/publish-helm-chart.yml`, `.github/workflows/promote-floating-tags.yml`, `.github/workflows/release-dry-run.yml`, and `.github/workflows/update-demo-server.yml`
3. Add or change shell installer, Windows installer, container-agent installer, or auto-update script behavior through `scripts/install.sh`, `scripts/install.ps1`, `scripts/install-container-agent.sh`, and `scripts/pulse-auto-update.sh`
4. Add or change server update transport through `internal/api/updates.go` and `frontend-modern/src/api/updates.ts`
5. Add or change local dev-runtime orchestration, managed ownership, browser-runtime proof wiring, frontend/backend coherence diagnostics, canonical developer entry wrappers, or dev-runtime helper control surfaces through `scripts/hot-dev.sh`, `scripts/hot-dev-bg.sh`, `Makefile`, `package.json`, `frontend-modern/package.json`, `scripts/dev-check.sh`, `scripts/toggle-mock.sh`, `scripts/clean-mock-alerts.sh`, `scripts/dev-launchd-setup.sh`, `scripts/dev-launchd-wrapper.sh`, `scripts/com.pulse.hot-dev.plist.template`, `tests/integration/scripts/managed-dev-runtime.mjs`, `tests/integration/playwright.config.ts`, `tests/integration/tests/helpers.ts`, `tests/integration/tests/runtime-defaults.ts`, `tests/integration/README.md`, and `tests/integration/QUICK_START.md`
@@ -129,11 +129,13 @@ governed deployment-build workflows must all carry the same build metadata
contract rather than depending on whichever local ldflags string happened to be
updated last.
That same Docker release-build boundary also owns the embedded frontend's
-shipped-doc inputs. When the frontend embed build syncs public docs from the
-repo root, `Dockerfile` must stage the canonical shipped docs set into the
-container build context before `npm run build` runs, rather than relying on a
-workstation-local checkout layout or leaving hosted runtime image builds unable
-to resolve `/app/docs/*.md`, `SECURITY.md`, or `TERMS.md`.
+shipped-doc inputs and the Docker context allowlist that makes those files
+available to release builds in the first place. When the frontend embed build
+syncs public docs from the repo root, `Dockerfile` and `.dockerignore` must
+jointly stage the canonical shipped docs set into the container build context
+before `npm run build` runs, rather than relying on a workstation-local
+checkout layout or leaving hosted runtime image builds unable to resolve
+`/app/docs/*.md`, `SECURITY.md`, or `TERMS.md`.
The same governed promotion path must now stay explicit too:
`scripts/release_control/resolve_release_promotion.py` is the canonical owner
for stable-versus-prerelease metadata validation shared by `.github/workflows/release-dry-run.yml`
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 03dfcb9764..ee316310bc 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -2256,6 +2256,7 @@
"internal/updates/"
],
"owned_files": [
+ ".dockerignore",
".github/workflows/create-release.yml",
".github/workflows/deploy-demo-server.yml",
".github/workflows/helm-pages.yml",
@@ -2360,6 +2361,7 @@
"label": "release build metadata proof",
"match_prefixes": [],
"match_files": [
+ ".dockerignore",
".github/workflows/deploy-demo-server.yml",
"Dockerfile",
"scripts/build-release.sh",
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index d2b1e79f84..91052689e6 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -121,6 +121,24 @@ func TestDockerfileStagesShippedDocsForEmbeddedFrontendBuild(t *testing.T) {
t.Fatalf("Dockerfile missing shipped-doc build input: %s", needle)
}
}
+
+ dockerignoreBytes, err := os.ReadFile(repoFile(".dockerignore"))
+ if err != nil {
+ t.Fatalf("read .dockerignore: %v", err)
+ }
+
+ dockerignore := string(dockerignoreBytes)
+ requiredAllowlist := []string{
+ `!docs/`,
+ `!docs/**`,
+ `!SECURITY.md`,
+ `!TERMS.md`,
+ }
+ for _, needle := range requiredAllowlist {
+ if !strings.Contains(dockerignore, needle) {
+ t.Fatalf(".dockerignore missing shipped-doc allowlist entry: %s", needle)
+ }
+ }
}
func repoFile(parts ...string) string {