Files
docker-jupyterhub/README.md
2023-12-26 18:29:11 +08:00

66 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# docker-jupyterhub
## Getting started
[main reference](https://github.com/jupyterhub/jupyterhub-deploy-docker)
构建自己的docker镜像
修改自己想要的python环境在文件`Dockerfile.jupyterhub`
基础镜像是:`jupyter/scipy-notebook` 里面含有conda
```shell
docker buildx build -t hotwa/jupyterhub:latest . -f Dockerfile.jupyterhub --load
```
修改docker-compose.yml文件环境变量DOCKER_NOTEBOOK_IMAGE
```shell
DOCKER_NOTEBOOK_IMAGE: hotwa/jupyterhub:latest
```
也可以通过 docker-compose 构建镜像
```shell
docker compose build
```
启动docker-compose.yml
```shell
docker compose up -d
```
停止
```shell
docker compose down
```
[基本镜像](https://github.com/jupyter/docker-stacks/tree/main/images/base-notebook)
https://github.com/jupyter/docker-stacks/tree/main/images
[jupyter-gpu](https://github.com/iot-salzburg/gpu-jupyter)
构建自己的基础镜像:
```shell
git clone https://github.com/jupyter/docker-stacks
cd docker-stacks/images/base-notebook
# 修改这个目录下面的 Dockerfile文件, 在后面加就行里面已经有了mamba、conda
docker buildx build -t hotwa/notebook:latest . -f Dockerfile
```
## Alternatives
- [rocker/binder](https://rocker-project.org/images/versioned/binder.html) -
From the R focused [rocker-project](https://rocker-project.org),
lets you run both RStudio and Jupyter either standalone or in a JupyterHub
- [jupyter/repo2docker](https://github.com/jupyterhub/repo2docker) -
Turn git repositories into Jupyter-enabled Docker Images
- [openshift/source-to-image](https://github.com/openshift/source-to-image) -
A tool for building artifacts from source code and injecting them into docker images
- [jupyter-on-openshift/jupyter-notebooks](https://github.com/jupyter-on-openshift/jupyter-notebooks) -
OpenShift compatible S2I builder for basic notebook images