learning_ai_notes/scripts/docker-doctor.sh
saravanakumardb1 216ebb83fb feat(ops): roll out canonical docker-prep + docker-doctor + Makefile (Phase D)
Apply Phase D playbook from docker-build-optimization-roadmap.md:

- scripts/docker-prep.sh: synced from canonical template
  (learning_ai_common_plat@a418a23e). Adds --dry-run, --check,
  --strip-overrides, idempotency guard, trap-based auto-restore,
  portable sed, .gitkeep preservation.
- scripts/_docker-prep-inject.js: helper for pnpm.overrides injection
- scripts/_docker-prep-strip.js: helper for --strip-overrides mode
- scripts/docker-doctor.sh: thin wrapper to canonical linter
- Makefile: make doctor target (gitea-doctor + docker-doctor)

Per-repo Dockerfile/compose fixes flagged by docker-doctor are tracked
in the roadmap and will land in follow-up commits.

Refs: docker-build-optimization-roadmap.md §Phase D
2026-05-27 04:05:46 -07:00

14 lines
550 B
Bash
Executable File

#!/usr/bin/env bash
# Thin wrapper — delegates to canonical docker-doctor in learning_ai_common_plat.
# Do not edit logic here; edit the canonical script.
set -euo pipefail
HERE="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$HERE/.." && pwd)"
CANONICAL="$REPO_ROOT/../learning_ai_common_plat/scripts/docker-doctor.sh"
if [ ! -x "$CANONICAL" ]; then
echo "✗ Canonical docker-doctor not found at $CANONICAL" >&2
echo " Clone learning_ai_common_plat as a sibling directory." >&2
exit 2
fi
exec bash "$CANONICAL" --repo "$REPO_ROOT" "$@"