Skip to content

Conversation

@bloodearnest
Copy link
Member

@bloodearnest bloodearnest commented Jan 19, 2026

Took advantage of moment of inspiration to try tackle this issue again.

Dependabot can update shas in dockerfiles, which is nice, as we can then manage
them in our regular update process.

Additionally, they help solve another problem. Currently, our weekly rebuilds
do not make commits to repo, so they deactivate after 3 months. However, merging
a dependabot PR will update the repo, and the weekly publish will no longer be
deactivated.

The issue has been that we use single parametrised Dockerfile, in order to keep
the images identical. This had previously precluded pinning the sha. However,
explicit pinned layers per version, and some tweaks to parameterisation,
I think we can do it.

We won't 100% know if this will work as intended until we merge it, but its
worth a shot.

By explicitly adding shas for all 3 versions of ubuntu, we should be
able to get dependabot to create PRs to update them to new versions as
part of our regular update process.
Copy link

@evansd evansd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely seems worth a go 🤞

@bloodearnest bloodearnest merged commit b541b63 into main Jan 27, 2026
3 checks passed
@bloodearnest bloodearnest deleted the pinned-shas branch January 27, 2026 16:16
@bloodearnest
Copy link
Member Author

Hmm, seems it didn't like it, dependabot errored

https://github.com/opensafely-core/base-docker/actions/runs/21404899658/job/61625912545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants