GithubHelp home page GithubHelp logo

docker-jupyter's Introduction

docker-jupyter

Docker containers for Jupyter. For a standalone, single user Notebook app, see ptimof/notebook.

Building

docker build -t ptimof/ipython 0-ipython
docker build -t ptimof/scipystack 1-scipystack
docker build -t ptimof/ipython-extras 2-ipython-extras
docker build -t ptimof/notebook 3-notebook   # optional
docker build -t ptimof/systemuser 4-systemuser
docker build -t ptimof/jupyterhub 5-jupyterhub

Alternatively, you may wish to pull these images from Docker Hub:

docker pull ptimof/jupyterhub
docker pull ptimof/systemuser

Setup

If a GitHub application has not yet been created, it can be created here. Make sure the callback URL is:

    http://[your_host:8000]/hub/oauth_callback

For example, example.com:8000.

Create a file env in a directory that contains the details from the GitHub application:

    GITHUB_CLIENT_ID=<client_id>
    GITHUB_CLIENT_SECRET=<client_secret>
    OAUTH_CALLBACK_URL=http://[your_host:8000]/hub/oauth_callback

Ensure that this file is only readable by root:

    chmod 0440 /usr/local/etc/jupyterhub/env

Running

docker run -d -p 8000:8000 -v /var/run/docker.sock:/docker.sock -v /etc/passwd:/srv/jupyterhub/userlist --env-file /usr/local/etc/jupyter/env --net=host --name jupyterhub ptimof/jupyterhub

Debugging

  • If a browser ends up stuck re-directing when attempting to use a server, it probably means that the user container needs to be removed. Have the user log out of JupyterHub, and Execute docker rm jupyter-[user].

docker-jupyter's People

Contributors

ptimof avatar

Watchers

Veerasak Kritsanapraphan avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.