Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Create kernelspec with different base image #475

Open
barche opened this issue Oct 11, 2016 · 5 comments
Open

Create kernelspec with different base image #475

barche opened this issue Oct 11, 2016 · 5 comments

Comments

@barche
Copy link
Contributor

barche commented Oct 11, 2016

I am trying to create a JuliaBox installation that only has the latest 0.4 and 0.5 stable versions in the kernel list, but instead end up with no available kernels at all (only Python). The changes made to the dockerfiles and install scripts are here:
barche@e0f79e1

It seems that if not using the 0.3 base image, the kernelspecs are written to a directory in .local. I have attempted to correct this, but no luck so far.

@tanmaykm
Copy link
Member

I think the kernel list gets built while building the package bundles and are loaded from a separate volume mount (after #421). Can you rebuild the package bundles and check?

@barche
Copy link
Contributor Author

barche commented Oct 12, 2016

Yes, they are, but somehow when not using a 0.3 base image they are not put in .ipython anymore. I think there is a newer IJulia on 0.4 and higher that uses jupyter instead of ipython. I adapted the config following http://jupyter.readthedocs.io/en/latest/migrating.html and got a little further.

In my config-rma branch the kernels show now, but the 0.5 kernel dies:
https://github.com/barche/JuliaBox/tree/config-rma

Is there a log or something that shows the reason for a dying kernel?

@barche
Copy link
Contributor Author

barche commented Oct 13, 2016

Never mind, I found the log at /opt/juliabox/.juliabox/ijulia_err.log and can read it using the shell in the browser. It seems to contain the information I need for debugging this.

@barche
Copy link
Contributor Author

barche commented Oct 14, 2016

OK, so I still can't figure it out. The problem is that /opt/julia_packages/.julia/v0.5 is missing, but the 0.3 and 0.6 directories are there, even though I am not creating those anymore in the Dockerfiles as far as I can tell. The dates on these directories are also 17 September, while I would expect them to have the timestamp corresponding to image creation.

@barche
Copy link
Contributor Author

barche commented Oct 16, 2016

Finally, it's solved. In case anyone else is bitten by this: the Julia packages are first extracted to /jboxengine/data/packages/julia_packages/ and are reused as long as that directory is not removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants