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

Building s2i-minimal-notebook from ubi8 base image #23

Open
CermakM opened this issue Feb 27, 2020 · 4 comments
Open

Building s2i-minimal-notebook from ubi8 base image #23

CermakM opened this issue Feb 27, 2020 · 4 comments

Comments

@CermakM
Copy link

CermakM commented Feb 27, 2020

Hi!

I am trying to build the minimal notebook from registry.access.redhat.com/ubi8/python-36 and I am hitting

++ _scl_source_help='Usage: source scl_source <action> [<collection> ...]
--
  | Don'\''t use this script outside of SCL scriptlets!
  | Options:
  | -h, --help    display this help and exit'
  | ++ '[' 2 -eq 0 -o enable = -h -o enable = --help ']'
  | ++ '[' -z '' ']'
  | ++ _recursion=false
  | ++ '[' -z '' ']'
  | ++ _scl_scriptlet_name=enable
  | ++ shift 1
  | ++ '[' -z '' ']'
  | ++ _scl_dir=/etc/scl/conf
  | ++ '[' '!' -e /etc/scl/conf ']'
  | ++ for arg in "$@"
  | ++ _scl_prefix_file=/etc/scl/conf/rh-nodejs10
  | +++ cat /etc/scl/conf/rh-nodejs10
  | ++ _scl_prefix=
  | ++ '[' 1 -ne 0 ']'
  | Can't read /etc/scl/conf/rh-nodejs10, rh-nodejs10 is probably not installed.
  | ++ echo 'Can'\''t read /etc/scl/conf/rh-nodejs10, rh-nodejs10 is probably not installed.'
  | ++ return 1

Would you please propose me the prefered way to get around this issue so that I could build the minimal notebook image from my own base image?

Cheers,
M

@GrahamDumpleton
Copy link
Contributor

A new Dockerfile with appropriate changes would need to be created to change to a different base image. Right now there are no plans to support a UBI base image for various reasons. These reasons include lack of knowledge around the new packaging system used in UBI base images. Potential lack of system packages required by Python data science packages (either not available at all for UBI, or only if have RH subscription). Inability to easily use automated build systems to create derived images due to the subscription requirements on UBI images (even the distributable UBI images at least need a free developer subscription).

What is more likely to occur is to move to a Fedora base image instead, or possibly even a switch to using official Jupyter project note base images with extra compatibility layer on top to ensure they work well on OpenShift. No time is however being devoted to looking at this at this point, and little time in general towards the whole project so don't expect significant changes soon, or until third party contributions are received for changes.

@CermakM
Copy link
Author

CermakM commented Feb 28, 2020

Hello @GrahamDumpleton, thanks for the exhaustive answer. Understood and respecting the decision.

Feel free to close this issue or update it when there are any changes w.r.t the subject in the future.

Cheers,
M

@juliusvonkohout
Copy link

We do not need UBI anymore. Centos8 is finally ready https://hub.docker.com/r/centos/s2i-core-centos8. I hope they will soon release a python image based on it sclorg/s2i-base-container#204

@BlueCog
Copy link

BlueCog commented Sep 10, 2020

Hi @CermakM, is this something you're stil struggling with? We are succesfully deploying and using @GrahamDumpleton's Jupyter Notebook on OpenShift method by using ubi7-python-36 images (we didn't test v8)

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

4 participants