• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

nbgallery/jupyter-alpine: Minimal docker image for Jupyter notebook with nbgalle ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

nbgallery/jupyter-alpine

开源软件地址:

https://github.com/nbgallery/jupyter-alpine

开源编程语言:

JavaScript 42.9%

开源软件介绍:

jupyter-docker

Project Status: Unsupported – We are migrating off of Alpine onto Project Jupyter's base image.  See our new repo at https://github.com/nbgallery/docker-images

Overview

This is a minimal Alpine-based docker image for running the Jupyter notebook server. It is designed for constrained environments in which the size of the docker image is a major consideration. The latest version (7.x series) is about 340MB uncompressed, much smaller than the official Jupyter images. It is hosted on Docker Hub.

We achieve the small image size by using the Alpine Linux base image, minimizing the number of pre-installed Python packages, and installing other language kernels on the fly. We currently support about a dozen languages, but only Python 2 and 3 are baked into the image. The other kernels are built into Alpine packages (apks) that get installed on first use. We also build popular Python data science packages into pre-compiled apks that can be installed using the ipydeps dependencies mechanism.

For more information, please check out this post on our github.io site.

Repository Status

We are migrating off of this Alpine-based docker image onto Project Jupyter's base image. Please see our new repo at https://github.com/nbgallery/docker-images.

Why move away from Alpine? Three main reasons:

  • Our organization's docker orchestration environment originally had image size restrictions, but those have since been relaxed. Meanwhile, the official Jupyter image has gotten smaller, and we'd prefer to build off of the same image as the rest of the community.
  • Alpine's Python package support is not great. Packages with native code take a while to install, and some don't build on Alpine at all. Alpine maintains pre-compiled packages such as py3-numpy, but they're not always up-to-date and pip doesn't know about them (which motivated this feature in ipydeps).
  • Alpine's package repository is not as complete as other Linux distributions. We've been maintaining some of our own packages, and we'd prefer to get out of that business.

Installation

Remember that docker commands usually need to be run as root or via sudo.

You can pull the image from Docker Hub:

docker pull nbgallery/jupyter-alpine

To build the image from source, clone or download the repo. Then build with something like this:

docker build -t nbgallery/jupyter-alpine:<version> <source-directory>

Running the image

You will usually launch a container something like this:

docker run --rm -p 443:443 nbgallery/jupyter-alpine

The default entrypoint is jupyter-notebook-secure, which will generate a self-signed certificate and then launch the jupyter notebook server under HTTPS with an automatically-generated authentication token.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap