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

start-notebook.sh should be split into config-notebook.sh and start-notebook.sh #27

Closed
mjbright opened this issue Sep 10, 2015 · 3 comments

Comments

@mjbright
Copy link

Related to my comment in issue #25 it would be useful to allow derivation of the various docker-stacks.

The start-notebook.sh script actually has 2 distinct functions

  • configure the notebook (most of the script)
  • starting the notebook (currently via supervisord)

We should have a CMD in the Dockerfile such as config-start.sh (you can surely think of a better name!) which then calls

  • config-notebook.sh
  • start-notebook.sh

In this way anyone can cleanly derive from the docker-stacks image by modifying config-start.sh to call

  • config-notebook.sh
  • derived-config.sh
  • start-notebook.sh
@parente
Copy link
Member

parente commented Sep 10, 2015

I think preferring the "Docker way" of doing thing should trump custom hooks. In issue #25, I think that's possible. (See my comment there.) If I'm missing something and it's not, or if there's another use case that does indeed require more scripts vs Dockerfile-isms, then script refactoring makes sense.

@mjbright
Copy link
Author

I agree I'd prefer the Dockerfile approach, but I'd prefer it for the
creation of jovyan user also.

On 10 September 2015 at 13:59, Peter Parente notifications@github.com
wrote:

I think preferring the "Docker way" of doing thing should trump custom
hooks. In issue #25 #25,
I think that's possible. (See my comment there.) If I'm missing something
and it's not, or if there's another use case that does indeed require more
scripts vs Dockerfile-isms, then script refactoring makes sense.


Reply to this email directly or view it on GitHub
#27 (comment)
.

@parente
Copy link
Member

parente commented Sep 10, 2015

Let's keep this convo going over in issue #25 which has the problem. This is a potential solution.

@parente parente closed this as completed Sep 10, 2015
rochaporto pushed a commit to rochaporto/docker-stacks that referenced this issue Jan 23, 2019
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