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

Various tuneups #217

Merged
merged 5 commits into from May 31, 2016
Merged

Various tuneups #217

merged 5 commits into from May 31, 2016

Conversation

parente
Copy link
Member

@parente parente commented May 30, 2016

Fixed a handful in one PR to avoid multiple costly rebuilds.

Based on PR #216 so that the tests run on travis post build. Merge that PR before this one.

Some makefile cleanup too

(c) Copyright IBM Corp. 2016
Prevent docker from creating the
~/.local/share/jupyter directory as rw for root
only. Otherwise notebook can’t create runtime/
and other import subduers

(c) Copyright IBM Corp. 2016
Ref jupyter#188

(c) Copyright IBM Corp. 2016
Ref jupyter#188

(c) Copyright IBM Corp. 2016
@@ -49,7 +50,7 @@ USER jovyan
# Setup jovyan home directory
RUN mkdir /home/$NB_USER/work && \
mkdir /home/$NB_USER/.jupyter && \
mkdir /home/$NB_USER/.local && \
mkdir -p -m 700 /home/$NB_USER/.local/share/jupyter && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this directory need to be created manually?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user follows the directions in the readme to host mount a ssl certificate where we have preconfigured the notebook server to look for it, docker creates the intervening directories with root ownership and read only permissions. This effectively prevents the notebook server from writing other files into this directory like the notebook signing key and breaks everything.

We could change the notebook config to look for the pem file in another directory and break backward compatibility with older images. I opted for keeping the file where it has been and making the subdirectories ahead of time.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, thanks.

@minrk minrk merged commit a249876 into jupyter:master May 31, 2016
@parente parente deleted the various-tuneups branch March 26, 2018 01:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants