Pin the uv stage image to a digest managed by Renovate

Open
#900 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, python

Research direction

Start by reading the python.j2 macro and find the python-builder stage that uses ghcr.io/astral-sh/uv:debian-slim. Check the repository's existing image pinning and Renovate configuration to see how digests are managed. Done means the stage is pinned to a SHA digest, automation can update it, and daily and preview builds still pick up new Python releases.

Written by the indexing model from the issue text.

Description

cvp:0 dependencies docker enhancement python:uv tdp:2

Pin the ghcr.io/astral-sh/uv:debian-slim stage used by the Python build macro to an image digest, and keep it current with Renovate or similar automation, so the stage is cached instead of re-pulled on every build.

The python.j2 macro currently uses the floating debian-slim tag for python-builder, so the Python install and copy steps can't be reliably cached. This adds avoidable network traffic and Cloudsmith spend.

  • Pin the uv stage to a SHA digest.
  • Add Renovate (or equivalent) config to bump the digest.
  • Confirm that Python installs for daily/preview builds still pick up new releases as intended.

Part of the effort to reduce Cloudsmith spend for image builds.

Dominant language
Python
Stars
2
Forks
0
Avg merge
3d 12h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/images-shared

All issues in posit-dev/images-shared

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.