jupyter-on-openshift / jupyter-notebooks

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

Add packages to images #6

Closed guimou closed 5 years ago

guimou commented 5 years ago

Hi, I know how to customize the images to add Python packages, or modify the assemble script. But I'd like to install packages such as Graphviz. I can't do it from assemble with a yum install as it does not run as root. I can modify the Dockerfile-py35 or 36 that are in the repo, but what's next? Do I have to change my buildstrategy in the build-configs from Source to Docker and then point to the right file? Is that the right way? Thanks, Guillaume.

guimou commented 5 years ago

I answered myself... With a strategy change that works perfectly. I leave this here for reference.

"source": { "type": "Git", "git": { "uri": "https://github.com/jupyter-on-openshift/jupyter-notebooks", "ref": "master" }, "contextDir": "tensorflow-notebook" }, "strategy": { "type": "Docker", "dockerStrategy": { "from": { "kind": "ImageStreamTag", "name": "s2i-minimal-notebook-s3:3.6" }, "dockerfilePath": "Dockerfile-py36" } },