add pytorch-notebook construct method
This commit is contained in:
31
spawnerdockerfile/README.md
Normal file → Executable file
31
spawnerdockerfile/README.md
Normal file → Executable file
@@ -52,3 +52,34 @@ source ~/.bashrc
|
|||||||
|
|
||||||
这个操作会激活micromamba(mamba, conda)的安装目录`etc/profile.d/micromamba.sh`激活添加到bash初始化文件`.bashrc`里面
|
这个操作会激活micromamba(mamba, conda)的安装目录`etc/profile.d/micromamba.sh`激活添加到bash初始化文件`.bashrc`里面
|
||||||
|
|
||||||
|
# docker镜像
|
||||||
|
|
||||||
|
关于这个jupyterlab的spawner的notebook启动的镜像来源于:quay.io/jupyterdocker-stacks-foundation
|
||||||
|
|
||||||
|
这个镜像的构建仓库是:https://github.com/jupyter/docker-stacks/blob/main/images/docker-stacks-foundation/Dockerfile
|
||||||
|
|
||||||
|
可以把这个Dockerfile的ARG参数ROOT_CONTAINER修改为docker pull nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
|
||||||
|
|
||||||
|
pytorch-notebook构建顺序是:
|
||||||
|
|
||||||
|
docker-stacks-foundation
|
||||||
|
base-notebook
|
||||||
|
minimal-notebook
|
||||||
|
scipy-notebook
|
||||||
|
pytorch-notebook
|
||||||
|
|
||||||
|
第一步
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone https://github.com/jupyter/docker-stacks.git
|
||||||
|
cd docker-stacks/images/docker-stacks-foundation
|
||||||
|
docker buildx build --build-arg ROOT_CONTAINER=nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04 -t quay.io/hotwa/docker-stacks-foundation:latest . --load # docker pull nvidia/cuda:12.4.1-devel-ubuntu22.04
|
||||||
|
cd ../base-notebook
|
||||||
|
docker buildx build --build-arg OWNER=hotwa -t quay.io/hotwa/base-notebook:latest . --load
|
||||||
|
cd ../minimal-notebook/
|
||||||
|
docker buildx build --build-arg OWNER=hotwa -t quay.io/hotwa/minimal-notebook:latest . --load
|
||||||
|
cd ../scipy-notebook
|
||||||
|
docker buildx build --build-arg OWNER=hotwa -t quay.io/hotwa/scipy-notebook:latest . --load
|
||||||
|
cd ../pytorch-notebook
|
||||||
|
docker buildx build --build-arg OWNER=hotwa -t quay.io/hotwa/pytorch-notebook:latest . --load
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user