Docker-stacks: Build image on Centos

Created on 2 May 2018  路  5Comments  路  Source: jupyter/docker-stacks

Can I build a base-notebook image based on Centos and not on Ubuntu?
Reason: I have to install other dependencies, which work only on Centos.
Thank you!

Question

Most helpful comment

Thank you! Actually this is exactly what I did instead waiting for an answer, and it works without time and effort only love --)
But I didn't know about the make build.
As you mentioned, I will make a fork to the base image, thus I can automate the build later from Github.

All 5 comments

With some time, love, and effort, probably, but I've not tried it. Maybe someone else who has can chime in here.

The way I'd approach it is to fork this repository, change the base-notebook/Dockerfile to start FROM centos:7, run make build/base-notebook, fix errors (e.g., yum instead of apt-get) as you find them, and iterate until it's built. I don't think anything the base-notebook depends on is only available on Ubuntu.

Thank you! Actually this is exactly what I did instead waiting for an answer, and it works without time and effort only love --)
But I didn't know about the make build.
As you mentioned, I will make a fork to the base image, thus I can automate the build later from Github.

Sounds like you're good to go so I'm going to close this out. Feel free to open a new issue if you have other questions.

FWIW we build a very similar stack to this one at work using CentOS. You would be more than welcome to use any of it that may be helpful.

@jakirkham can you please point me to your CentOS stacks? Would be of HUGE help!!

Was this page helpful?
0 / 5 - 0 ratings