jupyter-on-openshift / jupyter-notebooks

OpenShift compatible S2I builder for basic notebook images.
Apache License 2.0
54 stars 111 forks source link

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

Open CermakM opened 4 years ago

CermakM commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 https://github.com/sclorg/s2i-base-container/pull/204

BlueCog commented 4 years ago

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)