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

Install Python and Node.js in the UBI containers using pyenv and fnm #326

Merged
merged 14 commits into from
Nov 18, 2024

Conversation

julienp
Copy link
Contributor

@julienp julienp commented Nov 14, 2024

We don't have the full matrix of versions available for the UBI containers because we are installing from the UBI software catalog. This is problematic now that we want the default to be Nodejs 22 and Python 3.13, neither of which is available.

Instead of installing from pre-built packages, use fnm and pyenv to install the versions, similar to what we do for the kitchen-sink image.

Fixes #327

As announced in https://www.pulumi.com/blog/docker-containers/ we want
to updated the default versions:

| Language Runtime | Current Version | New Version |
| ---------------- | --------------- | ----------- |
| .NET             | 6.0             | 8.0         |
| Go               | 1.21            | 1.23        |
| Node.js          | 18              | 22          |
| Python           | 3.9             | 3.13        |
| Java             | 17              | 21          |

Fixes #321
@julienp julienp changed the title Install Python and Node.js in the UBI contaienrs using pyenv and fnm Install Python and Node.js in the UBI containers using pyenv and fnm Nov 14, 2024
@julienp julienp force-pushed the julienp/ubi-node-python branch from 8a382a0 to b748712 Compare November 14, 2024 16:04
Use fnm to install Node.js and pyenv to install Python. This ensures we can install all versions, and are not limited to what is provided by the RedHat UBI software catalog.
@julienp julienp force-pushed the julienp/ubi-node-python branch from b748712 to 0a13584 Compare November 14, 2024 16:33
@julienp julienp marked this pull request as ready for review November 15, 2024 09:12
@julienp julienp requested a review from a team as a code owner November 15, 2024 09:12
Base automatically changed from julienp/default-versions to main November 18, 2024 08:20
julienp added a commit that referenced this pull request Nov 18, 2024
As announced in https://www.pulumi.com/blog/docker-containers/ we want
to update the default versions:

| Language Runtime | Current Version | New Version |
| ---------------- | --------------- | ----------- |
| .NET             | 6.0             | 8.0         |
| Go               | 1.21            | 1.23        |
| Node.js          | 18              | 22          |
| Python           | 3.9             | 3.13        |
| Java             | 17              | 21          |

Fixes #321
Fixes #325
Fixes #323

Follow up with
#326 to enable
Python 3.13 and Node.JS 22 in UBI images.
@julienp julienp merged commit 133dfdd into main Nov 18, 2024
1 check passed
@julienp julienp deleted the julienp/ubi-node-python branch November 18, 2024 08:21
julienp added a commit that referenced this pull request Nov 19, 2024
#326 updated the UBI imags so that we can build for the missing Python and Node.js versions, but forgot to updated the release script.
@julienp julienp mentioned this pull request Nov 19, 2024
julienp added a commit that referenced this pull request Nov 19, 2024
#326 updated the
UBI imags so that we can build for the missing Python and Node.js
versions, but forgot to updated the release script.
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

Successfully merging this pull request may close these issues.

Install Python and Node.js in the UBI containers using pyenv and fnm
2 participants