Repository navigation
fix(cron): apply pending Alpine updates at build time - #370
Merged
Merged
Conversation
mcuadros/ofelia:0.3.22 is still the latest stable release, and its image hasn't been rebuilt since April, so the Alpine 3.23.3 base lags behind 3.23.7: openssl 3.5.5 -> 3.5.9, musl, zlib, ca-certificates and tzdata. Upgrading at build time keeps the base patched; the ofelia binary is unchanged.
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped, has no identified blocking issues, and includes reported build and scheduler smoke-test validation.
No open issues 🎉
What changed in this PR
Updates the cron image’s Alpine packages during image builds while leaving Ofelia’s binary, entrypoint, and command unchanged.
Changes:
- Adds
RUN apk upgrade --no-cacheto apply available Alpine package updates. - Documents why updates are needed between upstream Ofelia releases.
| File | Description |
|---|---|
cron/Dockerfile |
Applies Alpine package updates and explains the upstream rebuild limitation. |
Review effort: Balanced
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.
Applies pending Alpine updates when the cron image is built.
mcuadros/ofelia:0.3.22(2026-04-11) is still the latest stable ofelia release (0.4.0 is in beta), and its image hasn't been rebuilt since, so the Alpine base is stuck at 3.23.3. Our Dockerfile only adds labels, which is why every rebuild ofeasyengine/cronsince v4.11.0 has had the same content.apk upgradebrings the base to Alpine 3.23.7: libcrypto3/libssl3 3.5.5 → 3.5.9, musl 1.2.5-r21 → r24, zlib 1.3.1 → 1.3.2, ca-certificates 20251003 → 20261020, tzdata 2026a → 2026e, plus apk-tools and alpine-baselayout. The ofelia binary, entrypoint and command are unchanged.The image grows from 39 MB to 53 MB, since the upgraded files land in a new layer.
Testing
apk list -uin the built image is empty.job-localjob (@every 2s) runs and finishes withfailed: false, with no errors in the log.job-execjob runs its command in a sibling container every 2 s (StdOut: exec-ok).