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

Build support #719

Closed
DukeReno opened this issue Nov 4, 2024 · 5 comments
Closed

Build support #719

DukeReno opened this issue Nov 4, 2024 · 5 comments

Comments

@DukeReno
Copy link

DukeReno commented Nov 4, 2024

Hi, we are trying to build a Jupyter Notebook by using quay.io/sclorg/python-311-c9s:c9s (CentoOS Stream 9) as based image.

Currently we are facing a build issue to execute these commands

(cd /opt/app-root/gateway && source scl_source enable nodejs20 &&
npm install --production)

Please notice that I changed the nodejs20 because this is the version of nodejs that is installed on python-311-c9s:c9s image

As you can see, this requires installation of centos-release-scl and centos-release-scl-rh packages for CentOS Stream 9 and We had tried to install these packages but no success so far.

Is there a way to execute those commands by using the based image mentioned (python-311-c9s:c9s )? Or do you know if could be possible have installed these packages for CentOS Stream 9?

Thanks,

@frenzymadness
Copy link
Member

Why do you need to interact with SCL (software collections)? The nodejs version in this container image is 20.9.0 and you can run it without anything else:

$ podman run --rm -it quay.io/sclorg/python-311-c9s:c9s bash
(app-root) node --version
v20.9.0
(app-root) npm --version
10.1.0

@DukeReno
Copy link
Author

DukeReno commented Nov 5, 2024

Thanks for the quick replay on this.

We want to update the python version to 3.11 also move from CentOs 7 to Centos stream 9 by using the image quay.io/sclorg/python-311-c9s:c9s and We have some configuration that use SLC as described on this assemble file

https://github.com/jupyter-on-openshift/jupyter-notebooks/blob/develop/minimal-notebook/.s2i/bin/assemble (lines 95 and 96)

Is there a workaround to perform this installation steps with image python-311-c9s:c9s?

I have tried:

(cd /opt/app-root/gateway && source /usr/bin/node &&
npm install --production)

But I am getting a failure message saying that "/opt/app-root/s2i/assemble: line 130: source: /usr/bin/node: cannot execute binary" file

Regards,

@frenzymadness
Copy link
Member

I'm sorry, but it seems you don't understand what SCLs are for or what the source command does. Software collections don't exist anymore in Centos Stream 9 and the mentioned image contain nodejs 20 as the default one so there is no need to activate anything special or alter the environment in any way.

I think you can turn this:

(cd /opt/app-root/gateway && source /usr/bin/node &&
npm install --production)

into this:

(cd /opt/app-root/gateway && npm install --production)

This command should be enough to install nodejs packages. If it doesn't work, please provide the log of the build process.

@DukeReno
Copy link
Author

DukeReno commented Nov 7, 2024

Ok that did it, thanks for the help, the build was successful. Have a nice day

@DukeReno DukeReno closed this as completed Nov 7, 2024
@frenzymadness
Copy link
Member

I'm glad it did. Thank you for letting me know.

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