Pin the uv stage image to a digest managed by Renovate

Aperta
#900 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
2
Fork
0
Merge medio
3g 12h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/images-shared

Tutte le issue di posit-dev/images-shared

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.