Giter VIP home page Giter VIP logo

Comments (4)

rokroskar avatar rokroskar commented on August 17, 2024 1

Here's a Dockerfile that works:

FROM jupyter/base-notebook

USER root
RUN apt-get update -y && \
    apt-get install -y git && \
    wget https://github.com/cdr/code-server/releases/download/v3.6.2/code-server_3.6.2_amd64.deb && \
    dpkg -i ./code-server*.deb && \
    rm code-server_3.6.2_amd64.deb && \
    apt-get clean

USER $NB_USER
RUN pip install git+https://github.com/betatim/vscode-binder && \
    jupyter serverextension enable --py jupyter_server_proxy && \
    jupyter labextension install --no-build @jupyterlab/server-proxy && \
    jupyter lab build && \
    npm cache clean --force && \
    rm -rf /home/${NB_USER}/.cache && \
    code-server --install-extension ms-python.python

I'd be happy to make a PR that adds this is a documentation of sorts but I'm not sure where it should go.

from vscode-binder.

manics avatar manics commented on August 17, 2024

You might find this discussion on zero-to-jupyterhub useful, it includes a Dockerfile:
jupyterhub/zero-to-jupyterhub-k8s#1902

from vscode-binder.

rokroskar avatar rokroskar commented on August 17, 2024

Indeed thanks for the pointer @manics - looking quickly at that PR it seems that all that is needed for what they're describing is exactly this type of minimal Dockerfile that just adds code to the base jupyter image. Doesn't require any changes to JH at all and if you give the users the choice of default starting URL they can just launch straight into VSCode. Anyway, I'll read the rest of that thread and add comments there :)

from vscode-binder.

manics avatar manics commented on August 17, 2024

See what @betatim thinks regarding how he wants to manage this repo, but one option could be to create your own repo, setup an automated build on Docker Hub (or some other system) and link to it from the README?

from vscode-binder.

Related Issues (20)

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.