-
Notifications
You must be signed in to change notification settings - Fork 131
Conversation
Oh my gosh, thanks. Our cdn.jupyter.org setup is nginx + static files, fronted by fastly. We used to serve directly out of nginx, especially when we were hosting the latest master of ipython/ipython for the longest time. With a pinned version, this changes. With this PR, we'll have to update the try directory. Example: http://cdn.jupyter.org/notebook/try/custom/custom.js We should probably rely on versioning there too. |
c = get_config() | ||
c.NotebookApp.ip = '*' | ||
c.NotebookApp.open_browser = False | ||
c.NotebookApp.port = 8888 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only part I'm questioning, but I'm assuming the originating files already have it and we're relying on it to stay consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The jupyter/minimal-notebook stack has all this and more: https://github.com/jupyter/docker-stacks/blob/master/minimal-notebook/jupyter_notebook_config.py
The Julia logo is a known issue. I patched that in IJulia not so long ago, seems like we were waiting on a release. |
One deprecation note: should we migrate the tmpnb example to using jupyter/minimal-notebook and delete the jupyter/minimal image from docker hub? The alternative is making jupyter/minimal just "FROM jupyter/minimal-notebook" or set up hooks to create minimal from the same spot. |
Thanks for the ping @parente. IHaskell and the ihaskell-widgets package both support 4.0 now in the github |
Would it be ok if we rely on this and for Haskell to not be supported until it's ready? |
@rgbkrk As I'm learning more about tmpnb, dawns on me that the containers are running the notebook server as root not jovyan because of the way the command is passed.
should do the trick on launch. Or we can wait for jupyter/docker-stacks#24 to get resolved. |
Would specifying the user as part of the call to docker-py work well? (same as |
Yes it will, but is that an exposed option to orchestrate? |
No, but it could always be added. It's too bad we can't just run straight from the notebook server. Open to tini as well. |
cabal install ihaskell-0.6.4.1 --reorder-goals && \ | ||
cabal install ihaskell-widgets-0.1 HTTP Chart Chart-cairo && \ | ||
cabal install ihaskell-0.7.1.0 --reorder-goals && \ | ||
cabal install ihaskell-widgets HTTP Chart Chart-cairo && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New releases: ihaskell-0.8.0.0
and ihaskell-widgets-0.2.0.0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Will update later today and try.
Contribution (c) Copyright IBM Corp. 2015
751418d
to
9cb3318
Compare
Confirmed ihaskell widgets working. Rebased on master to fix conflict. Looking into tini over in docker-stacks for simplifying container startup. |
How about marking jupyter/minimal DEPRECATED on docker hub in its description, referring people to jupyter/minimal-notebook, and leaving the deprecated image there for a time before deleting it? |
That's fine. As long as we also change the tmpnb README's to point to jupyter/minimal-notebook. |
Round-up:
Upon launch, the container entrypoint should be tini (as specified in the base image) while the initial command will be
|
New ihaskell failure today during build (whereas last week all was well).
Update Doh. https://hackage.haskell.org/package/singletons-2.0.0.1/reports/1 |
Contribution (c) Copyright IBM Corp. 2015
Pin singletons to 1.1.2.1 for now Contribution (c) Copyright IBM Corp. 2015
Today I'll carve out some of these as well as give you access to the CDN @parente. We do have versioned assets up but we haven't publicly declared what's available. |
Ah but I see we'd want to version the try content from the CDN. |
Not clear on what that versioning scheme would look like or how it relates to the options on the launching of the tmpnb containers. If you've got cycles in the late afternoon today, we can pair on it if you'd like. |
2-4pm central I'm packed, but any time on either side of that wide open. |
Might be able to do 1 PM CST. Let's take off issue to gitter and see what time works out. I'll ping there. |
1d150fd
to
3be9067
Compare
https://jupyter.hackpad.com/Ops-Log-9242015-DObACmQcdks @rgbkrk I think this is ready to go in to match the "latest" image now on Docker Hub. (Unless you don't want to merge til after the try site is updated.) |
|
Rebase on jupyter/minimal-notebook:4.0
@rgbkrk First crack at updating docker-demo-images to 4.0. Need many more eyes and testing, particularly against how it'll be run at tmpnb.org.
Key points
jupyter/minimal-notebook:4.0
image from docker-stacks to DRYjupyter/minimal-notebook -> jupyter/demo -> jupyter/tmpnb-demo
. Then other folks can simply startFROM jupyter/demo
and add their own site customizations without having to rebuild the massive middle image.I added comments galore throughout the Dockerfile.
Known problems
static_url_prefix
in the jupyter config is in play because the CDN site does not have the piece parts yet. So for testing, I simply removed that part of the config for now. (And since it's near the end of the Dockerfile now, I didn't have to wait 3 hours to test again! Yay!)http://mydomain:8889/kernelspecs/julia-0.3/logo-64x64.png Failed to load resource: the server responded with 404
Not sure why considering the logo is right where it needs to be. For comparison, the python2 logo is in its proper spot and loads just fine:Unknowns
DevOps impact
/opt/conda/lib/python3.4/site-packages/notebook/static/custom/
which appears to be nginx mounted according to the original Dockerfile comments. That'll need to change on deploy.