Skip to content

Fixes default python version in Dockerfile#397

Open
sneridagh wants to merge 3 commits into
nextfrom
fixdefaultpythonver
Open

Fixes default python version in Dockerfile#397
sneridagh wants to merge 3 commits into
nextfrom
fixdefaultpythonver

Conversation

@sneridagh
Copy link
Copy Markdown
Member

closes #396

@sneridagh sneridagh requested review from ericof and pbauer as code owners May 11, 2026 08:41
@sneridagh sneridagh changed the title Fixdefaultpythonver Fixes default python version in Dockerfile May 11, 2026
@sneridagh sneridagh changed the base branch from main to next May 11, 2026 08:41
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.12
ARG PYTHON_VERSION=3.13
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use the same variable that we do in other files: {{ cookiecutter.__supported_versions_python[0] }}

(Different versions of the Plone backend support different ranges of Python versions. With 6.2 this should be Python 3.14)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But also: this is just a default and normally this arg should be passed in. I asked for some more info about the context where you were running it in #396 so we can confirm what's missing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just added the parametrization for the image build

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericof Can we then change this line to

Suggested change
ARG PYTHON_VERSION=3.13
ARG PYTHON_VERSION=undefined

so it is more obvious if it somehow gets built without proper parameterization?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

Building Docker backend image throws error

3 participants