{"id":50718818,"url":"https://github.com/tnoff/ci-base-images","last_synced_at":"2026-06-09T21:32:05.886Z","repository":{"id":363446172,"uuid":"1262479646","full_name":"tnoff/ci-base-images","owner":"tnoff","description":"Python CI runtime base images (one per Python minor)","archived":false,"fork":false,"pushed_at":"2026-06-08T23:25:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T01:20:26.786Z","etag":null,"topics":["base-image","ci","docker","python"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tnoff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-08T03:04:07.000Z","updated_at":"2026-06-08T23:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tnoff/ci-base-images","commit_stats":null,"previous_names":["tnoff/ci-base-images"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tnoff/ci-base-images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fci-base-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fci-base-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fci-base-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fci-base-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tnoff","download_url":"https://codeload.github.com/tnoff/ci-base-images/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fci-base-images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34127343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base-image","ci","docker","python"],"created_at":"2026-06-09T21:32:05.156Z","updated_at":"2026-06-09T21:32:05.881Z","avatar_url":"https://github.com/tnoff.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ci-base-images\n\nPython CI runtime base images — one image per supported Python minor,\npre-baked with `git` + the OS deps the Python fleet's CI matrix needs\n(currently `ffmpeg`, `postgresql`). Pushed to OCIR so the tox\nmatrix in downstream repos skips the apt-install preamble entirely.\n\n## What this publishes\n\nFor each Python minor listed in [`tox.ini`](./tox.ini), the build pushes\ntwo tags to the OCIR repo `ci-base-images`:\n\n- **`:3.X`** — mutable. Overwritten on every rebuild from `main`. Use\n  this for everyday consumer pinning; it auto-picks up apt/Python\n  security rebuilds.\n- **`:3.X-\u003cshort-sha\u003e`** — immutable. The commit SHA of the build that\n  produced it. Use if you want strict bit-for-bit reproducibility for\n  a given consumer pipeline run.\n\n## Consumer usage\n\nSet `TOX_BASE_IMAGE` on a `.tox-generate` job in a downstream repo. Use\nthe group-level `CI_BASE_IMAGE_PATH` CI variable (provisioned by\n`terraform/infra/gitlab.tf`) for the registry prefix, and let\n`${PYTHON_VERSION}` get expanded per matrix entry by the generated\nchild pipeline:\n\n```yaml\ntox-generate:\n  extends: .tox-generate\n  variables:\n    TOX_BASE_IMAGE: '${CI_BASE_IMAGE_PATH}:${PYTHON_VERSION}'\n```\n\nWhen `TOX_BASE_IMAGE` is set, the generator skips `apt-get install` and\nonly runs `pip install tox` before the tox command — `TOX_EXTRA_APT` is\nignored.\n\n## Adding a system dep\n\nEdit [`python/Dockerfile`](./python/Dockerfile) and add the package to\nthe `apt-get install` line. Open an MR; on merge, the next build\noverwrites all `:3.X` tags with rebuilt images that include the new\npackage. Consumers don't need to change anything to pick it up.\n\nThe apt list is intentionally a single kitchen-sink set rather than\nper-flavor images. The tradeoff is that lean consumers pay a few extra\nMB of image pull for deps they don't use; this is much cheaper than\nper-flavor tag-management complexity at this fleet size.\n\n## Adding a Python minor\n\nEdit BOTH [`tox.ini`](./tox.ini) (add `py3X` to `env_list`) and\n[`.gitlab-ci.yml`](./.gitlab-ci.yml) (add `\"3.X\"` to the `build` job's\n`parallel: matrix:`). The `matrix-sync-check` validate-stage job fails\nthe pipeline if they drift, so a single-file change won't reach `main`.\nRenovate doesn't bump this — Python minors ship once a year and the\ndecision to start publishing one is intentional.\n\n## Why `tox.ini`?\n\n`tox.ini`'s `env_list` is the documented \"what Python minors do we\npublish\" declaration. It's the same shape consumer repos use, so the\nconvention is uniform — and the `.tox-generate` template's\n`py(\\d)(\\d+)` regex is the literal sync-check used by\n`matrix-sync-check` here.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnoff%2Fci-base-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftnoff%2Fci-base-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnoff%2Fci-base-images/lists"}