Repository navigation
projects: Build a build image for Python functions - #588
Merged
Merged
Conversation
Previously, our build image for Python functions was a stock Debian container, which meant we had to install the Python toolchain as part of every build. This is slow and breaks in environments where users can't access the Debian package repositories. Create a simple build image by installing the necessary Python tools into the same Debian image we used before. Add a CI job to update the image when the Dockerfile changes. Since we're using a digest for the base (upstream Debian) image, Renovate will update the Dockerfile for us, triggering a new image build. A new base image build will trigger Renovate to update the version in images.yaml, so we get automatic updates with manual approval (and existing versions of the CLI won't have their base image change unexpectedly). Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
haarchri
approved these changes
Nov 23, 2026
3 tasks done
adamwg
added a commit
that referenced
this pull request
Nov 23, 2026
Use the image we built in #588 as the Python build image. Renovate should keep it up-to-date going forward. Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of your changes
Previously, our build image for Python functions was a stock Debian container, which meant we had to install the Python toolchain as part of every build. This is slow and breaks in environments where users can't access the Debian package repositories.
Create a simple build image by installing the necessary Python tools into the same Debian image we used before. Add a CI job to update the image when the Dockerfile changes. Since we're using a digest for the base (upstream Debian) image, Renovate will update the Dockerfile for us, triggering a new image build. A new base image build will trigger Renovate to update the version in images.yaml, so we get automatic updates with manual approval (and existing versions of the CLI won't have their base image change unexpectedly).
Ref #437
I have:
- [ ] Run./nix.sh flake checkto ensure this PR is ready for review.- [ ] Added or updated unit tests.- [ ] Linked a PR or a docs tracking issue to document this change.- [ ] Addedbackport release-x.ylabels to auto-backport this PR.