Add entrypoint fallback for missing bind-mounted scripts #2

Merged
m.mabrey merged 2 commits from scripts/entrypoint into main 2026-08-05 01:56:50 +00:00
Collaborator

Adds a fallback entrypoint so backup containers stay usable even when the
bind-mounted scripts directory is missing.

  • scripts/entrypoint.sh (new): prefers the live bind-mounted backup-cron.sh,
    falling back to a copy baked into the image at build time if the mount is
    missing. If neither exists, it stays up and idle instead of crash-looping,
    so the container stays reachable via console/exec for diagnosis.
  • scripts/backup-cron.sh (updated): resolves db-backup.sh the same
    live-or-fallback way, re-checked every loop iteration, so a bind mount
    that comes back healthy is picked up on the next backup run with no
    restart needed.
  • scripts/backup.Dockerfile (updated): bakes all three scripts into the
    image under /app/scripts-default/ as the fallback, sets the new wrapper
    as ENTRYPOINT.
  • Removed the static entrypoint variable to allow validation of scripting
    files before startup.
Adds a fallback entrypoint so backup containers stay usable even when the bind-mounted scripts directory is missing. - scripts/entrypoint.sh (new): prefers the live bind-mounted backup-cron.sh, falling back to a copy baked into the image at build time if the mount is missing. If neither exists, it stays up and idle instead of crash-looping, so the container stays reachable via console/exec for diagnosis. - scripts/backup-cron.sh (updated): resolves db-backup.sh the same live-or-fallback way, re-checked every loop iteration, so a bind mount that comes back healthy is picked up on the next backup run with no restart needed. - scripts/backup.Dockerfile (updated): bakes all three scripts into the image under /app/scripts-default/ as the fallback, sets the new wrapper as ENTRYPOINT. - Removed the static entrypoint variable to allow validation of scripting files before startup.
m.mabrey added 2 commits 2026-08-05 01:56:18 +00:00
- scripts/entrypoint.sh (new): prefers the live bind-mounted backup-cron.sh, but falls back to a copy baked into the image at build time if the mount is missing. If neither exists, it stays up and idle (instead of crash-looping) so the container remains reachable via console/exec for diagnosis.
- scripts/backup-cron.sh (updated): resolves db-backup.sh the same live-or-fallback way, re-checked on every loop iteration, so if the bind mount comes back healthy later, this container picks up the live scripts on its next backup run with no restart needed.
- scripts/backup.Dockerfile (updated): bakes all three scripts into the image under /app/scripts-default/ as the fallback, and sets the new wrapper as ENTRYPOINT.
m.mabrey merged commit 7bb1f66588 into main 2026-08-05 01:56:50 +00:00
m.mabrey deleted branch scripts/entrypoint 2026-08-05 01:56:50 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: n.siegfried/Project-SDE-WP-Suite#2
No description provided.