You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to use Python 3.13 with IBM Cloud Code Engine backend I modified code-engine.py to use bookworm as base-image and not slim-buster, which did not work because there is no standard docker container matching the python 3.13 tag for that combination.
dockerfile = "Dockefile.default-ce-runtime"
with open(dockerfile, 'w') as f:
#f.write(f"FROM python:{utils.CURRENT_PY_VERSION}-slim-buster\n")
f.write(f"FROM python:{utils.CURRENT_PY_VERSION}-bookworm\n")
f.write(config.DOCKERFILE_DEFAULT)
It would be great to use some external templates building the Docker File instead doing it in the source code and to have the template customisable by the user.
The text was updated successfully, but these errors were encountered:
rmey
changed the title
hack for Python 3.13 support for IBM Cloud Code Engine backend
Python 3.13 support for IBM Cloud Code Engine backend
Nov 12, 2024
Hi @rmey, this code was added to simplify the setup process for new users, primarily for "hello-world" scenarios. However, you're correct that the hardcoded "buster" version is outdated with newer Python versions. I’ll check into updating it.
The correct approach for advanced users is to navigate to the runtimes folder, where we provide templates and instructions for customizing your Dockerfiles as needed.
To be able to use Python 3.13 with IBM Cloud Code Engine backend I modified code-engine.py to use bookworm as base-image and not slim-buster, which did not work because there is no standard docker container matching the python 3.13 tag for that combination.
It would be great to use some external templates building the Docker File instead doing it in the source code and to have the template customisable by the user.
The text was updated successfully, but these errors were encountered: