Git Product home page Git Product logo

jupyterlab_docker's Introduction

JupyterLab Local Docker Image

This repository contains scripts to set-up a JupyterLab Docker Image with a Volume. The docker-compose.yml defines the JupyterLab image which will be pulled from Dockerhub. As an example, the pyspark-notebook is used as a base image, located here on dockerhub. The full docs related to these docker images are located here

docker-compose explained

The docker-compose.yml file contains all the necessary configuration to get everything up and running.

The docker image can be created and run using the following command:

docker compose up

Image

A single service is created named 'app'. It is built from the pyspark notebooks on dockerhub. A specific version, or tag, can be pulled from dockerhub. In this example, tag 3.0.16 used.

Ports

The ports part details how we will access JupyterLabs from our web browser. In this example, we have mapped port 8888 on our local host to port 8888 in the docker container. As a result, we will be able to access JupyterLabs at http://127.0.0.1:8888/lab when we run the docker image.

Volumes

The volumes part defines how files will be shared between the host and the docker container. In this example we are sharing files that are located in the folder docker_local on our local machine, with the work folder in the docker image, located at /home/jovyan/worl. Note: While the container maintains intact if the app service is exited, the volume ensures that no work will be lost in the event of the container being permantely deleted or other such unexpected events.

Environment

The last part specifies the necessary environmental variables to be enabled. To enable JupyterLabs, set JUPYTER_ENABLE_LAB=yes

The official documentation for docker-compose can be found here

jupyterlab_docker's People

Contributors

jamieb12 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.