Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code Engine] Allow to build the default runtime with Python 3.13 #1415

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- [Standalone] Fixed an issue causing workers to stop prematurely in Consume mode
- [Invoker] Reduced the number of threads used in the async FaaS Invoker
- [Monitoring] Fixed token bucket issue that prevented generating the correct number of tokens
- [Code Engine] Allow to build the default runtime with Python 3.13


## [v3.5.1]
Expand Down
4 changes: 3 additions & 1 deletion lithops/serverless/backends/code_engine/code_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ def _build_default_runtime(self, default_runtime_img_name):
"""
# Build default runtime using local dokcer
dockerfile = "Dockefile.default-ce-runtime"
python_version = utils.CURRENT_PY_VERSION
base_image = "slim-buster" if int(python_version.split('.')[1]) < 13 else "bookworm"
with open(dockerfile, 'w') as f:
f.write(f"FROM python:{utils.CURRENT_PY_VERSION}-slim-buster\n")
f.write(f"FROM python:{python_version}-{base_image}\n")
f.write(config.DOCKERFILE_DEFAULT)
try:
self.build_runtime(default_runtime_img_name, dockerfile)
Expand Down
Loading