Add BACKUP_INTERVAL_MS environment variable for the Docker daemon - #12
Merged
Merged
Conversation
docker-entrypoint.sh now maps BACKUP_INTERVAL_MS to -Dbackup.scheduled.interval.ms, so the scheduled backup interval can be configured from .env/docker-compose.yml without overriding the entrypoint. Closes #9 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Member
Author
|
Self-review rubric (external anchor:
Two out-of-diff observations, neither treated as blocking:
Behavior when This self-review was performed and posted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker-entrypoint.shgains a third branch that maps aBACKUP_INTERVAL_MSenvironment variable to-Dbackup.scheduled.interval.ms, matching the existingBACKUP_DIRECTORYandSCHEDULED_USERSbranches. The variable is only passed through when non-empty, so the86400000(24 hour) default fromapplication-daemon.propertiesstill applies when it is unset.BACKUP_INTERVAL_MSis declared with an empty default in theDockerfile(alongsideSCHEDULED_USERS), wired throughdocker-compose.ymlas${BACKUP_INTERVAL_MS:-}, and added to.env.example.CONFIG.md's Docker environment variable table gains a row for it, and the paragraph stating thatbackup.scheduled.interval.mshas no corresponding environment variable is removed, since it is no longer true.CHANGELOG.mdgains an[Unreleased]section recording the addition.No new JVM system property, CLI flag, or REST endpoint is introduced —
backup.scheduled.interval.mswas already documented inCOMMANDS.mdandCONFIG.md, so those command-surface docs are unchanged.Test plan
mvn test— 54 tests run, 0 failures, 0 errors, 1 skipped,BUILD SUCCESS.docker-compose.ymlparsed and theenvironment:block inspected after the edit, confirming valid YAML and the expected four entries.docker-entrypoint.shis a shell script and the Maven build cannot execute it, so a green CI run does not verify this file. Shell execution was additionally unavailable in the environment this change was authored in, so the entrypoint was reviewed by hand rather than run. The added branch is a literal copy of the two adjacent, already-working branches with only the variable and property name differing. A container smoke test (BACKUP_INTERVAL_MS=3600000 docker-compose up, then confirming the daemon logsBackup interval: 1.0 hours) is recommended before relying on it in production.Deferred this cycle
Issue #8 (missing
LICENSEfile) was not picked up: it requires a maintainer decision on the copyright holder name and year, which is a licensing choice rather than a code or documentation-accuracy fix, and no human was available to make that call during this session.Closes #9
This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
drafted by Claude on behalf of Daniel Stephenson