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

fix: Install python3 executable for node-gyp #8998

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcheshkov
Copy link
Member

Description of Changes Made (if issue reference is not provided)

By default node-gyp looks only for python and python3 executables, and python3.11 package installs only python3.11 That leads to failure during installation optional dependency java from NPM even in -jdk image

Without python3 executable java fails during installation, and because it is marked optional, installation is successful.
But later, at runtime any JDBC driver would fail with Cannot find module 'java', even in image with JDK installed.

This PR installs python3 executable, as expected by node-gyp, but there are alternative aproaches:

local.Dockerfile and testing-drivers.Dockerfile were not affected because they both had python3 package installed before running yarn install.

@mcheshkov mcheshkov marked this pull request as ready for review November 27, 2024 13:01
@mcheshkov mcheshkov requested a review from a team as a code owner November 27, 2024 13:01
By default node-gyp looks only for `python` and `python3` executables, and python3.11 package installs only `python3.11`
That leads to failure during installation optional dependency `java` from NPM even in `-jdk` image
@mcheshkov mcheshkov force-pushed the container-image-yarn-missing-python branch from bd817dd to 03f8b6c Compare November 27, 2024 14:01
Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm

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.

1 participant