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

Python 3.13 support for IBM Cloud Code Engine backend #1404

Open
rmey opened this issue Nov 12, 2024 · 2 comments
Open

Python 3.13 support for IBM Cloud Code Engine backend #1404

rmey opened this issue Nov 12, 2024 · 2 comments

Comments

@rmey
Copy link

rmey commented Nov 12, 2024

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.

@rmey 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
@JosepSampe
Copy link
Member

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.

@rmey
Copy link
Author

rmey commented Nov 12, 2024

Thank you for the clarification I will build a custom runtime as you described @JosepSampe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants