Skip to content

Pin CI base image by digest and rebuild weekly - #2477

Open
mhumeSF wants to merge 1 commit into
mainfrom
mhume/docker-base-freshness
Open

Pin CI base image by digest and rebuild weekly#2477
mhumeSF wants to merge 1 commit into
mainfrom
mhume/docker-base-freshness

Conversation

@mhumeSF

@mhumeSF mhumeSF commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Pins ubuntu:26.04 by digest so upstream tag pushes don't silently invalidate the shared build cache, adds a dependabot config to open a PR when a new image is published, and rebuilds the cached base image weekly so apt packages don't go stale between Dockerfile changes.

Copilot AI lite review requested due to automatic review settings August 5, 2026 12:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes the Docker base image build more reproducible and cache-stable by pinning the Ubuntu base image by digest, and adds automation to keep that pin and the cached layers fresh over time.

Changes:

  • Pin ubuntu:26.04 in docker/Dockerfile using an immutable digest to prevent upstream tag moves from invalidating caches unexpectedly.
  • Add a weekly scheduled run to rebuild the cached base/base_rust Docker stages so apt-installed packages don’t drift stale between Dockerfile edits.
  • Introduce Dependabot configuration to track Docker dependency updates under /docker.

Verdict: CORRECT

Generated with Claude Code

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docker/Dockerfile Switches Ubuntu base to a digest-pinned reference for reproducible builds and stable layer caching.
.github/workflows/docker-base.yaml Adds a weekly cron trigger to refresh the cached Docker base stages.
.github/dependabot.yml Enables weekly Dependabot checks for Docker updates in the docker/ directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker/Dockerfile Outdated
Pin ubuntu:26.04 by digest, add dependabot to bump it when a new image
is published, and rebuild the cached base image weekly.
@mhumeSF
mhumeSF force-pushed the mhume/docker-base-freshness branch from 48838b1 to 323071a Compare August 5, 2026 13:00
@Baltoli

Baltoli commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

adds a dependabot config to open a PR when a new image is published

any idea how often this is?

Comment thread docker/Dockerfile
# syntax=docker/dockerfile:1-labs

FROM ubuntu:26.04 AS base
FROM ubuntu:26.04@sha256:678c6550cc43645e08669028bc177f50be4e7c5b8cca677067b1914d4afc7a03 AS base

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we do the same thing in other places we use bare 26.04 (e.g. monad-bft)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll get this on monad-bft

mhumeSF commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

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.

4 participants