func icon indicating copy to clipboard operation
func copied to clipboard

Host builder `host` and `base image` environment mismatch

Open matejvasek opened this issue 4 months ago • 2 comments

When local builder creates an image it includes locally populated venv directory. The directory contains files that depend on local environment. For example local version of the standard C library or local version of Python

These artifact might not work within base image.

Example: somebody tried to build a function that uses numpy on Ubuntu 24.04.2 LTS, but the image would not work because of this mismatch (probably version of Python).

I am not sure how to mitigate this. We could build multiple base images with based on various distributions and various Python versions. The host builder then could choose the appropriate base-image by looking at local environment.

matejvasek avatar Aug 04 '25 16:08 matejvasek

Thanks Matej.

Just to clarify the impact: This affects Functions which 1) have libraries with C dependencies and 2) are deploying using the Host builder and 3) have a differing version of Python from that used by the runtime image.

lkingland avatar Aug 04 '25 22:08 lkingland

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Nov 03 '25 01:11 github-actions[bot]