Package runtime diagnostics in all-in-one image
This commit is contained in:
@@ -25,7 +25,9 @@ def test_unsafe_request_id_is_replaced() -> None:
|
|||||||
|
|
||||||
def test_runtime_report_is_read_only_by_default_and_requires_confirmation() -> None:
|
def test_runtime_report_is_read_only_by_default_and_requires_confirmation() -> None:
|
||||||
source = (ROOT / "scripts" / "runtime_state_report.py").read_text(encoding="utf-8")
|
source = (ROOT / "scripts" / "runtime_state_report.py").read_text(encoding="utf-8")
|
||||||
|
dockerfile = (ROOT / "deploy" / "unraid" / "Dockerfile.all-in-one").read_text(encoding="utf-8")
|
||||||
|
|
||||||
assert '"mode": "read_only"' in source
|
assert '"mode": "read_only"' in source
|
||||||
assert "if args.reconcile and args.confirm != RECONCILE_CONFIRMATION" in source
|
assert "if args.reconcile and args.confirm != RECONCILE_CONFIRMATION" in source
|
||||||
assert "RuntimeReconciliationService.reconcile(db)" in source
|
assert "RuntimeReconciliationService.reconcile(db)" in source
|
||||||
|
assert "COPY scripts/runtime_state_report.py /app/scripts/runtime_state_report.py" in dockerfile
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ COPY scripts/build_mol_operational_benchmark_report.py /app/scripts/build_mol_op
|
|||||||
COPY scripts/run_split_background_promotion_workflow.sh /app/scripts/run_split_background_promotion_workflow.sh
|
COPY scripts/run_split_background_promotion_workflow.sh /app/scripts/run_split_background_promotion_workflow.sh
|
||||||
COPY scripts/activate_promoted_yolo_candidate.py /app/scripts/activate_promoted_yolo_candidate.py
|
COPY scripts/activate_promoted_yolo_candidate.py /app/scripts/activate_promoted_yolo_candidate.py
|
||||||
COPY scripts/archive_technical_projects.py /app/scripts/archive_technical_projects.py
|
COPY scripts/archive_technical_projects.py /app/scripts/archive_technical_projects.py
|
||||||
|
COPY scripts/runtime_state_report.py /app/scripts/runtime_state_report.py
|
||||||
COPY deploy/unraid/nginx-all-in-one.conf /etc/nginx/conf.d/default.conf
|
COPY deploy/unraid/nginx-all-in-one.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY deploy/unraid/all-in-one-start.sh /usr/local/bin/geointel-all-in-one-start
|
COPY deploy/unraid/all-in-one-start.sh /usr/local/bin/geointel-all-in-one-start
|
||||||
COPY --from=frontend-build /frontend/dist/ /usr/share/nginx/html/
|
COPY --from=frontend-build /frontend/dist/ /usr/share/nginx/html/
|
||||||
|
|||||||
Reference in New Issue
Block a user