2024-12-05 20:59:25 +08:00
# Cenv
English | [中文 ](README_CN.md )
**THIS doc for non-CN USER**
2024-12-10 02:11:10 +08:00
**ghcr.io: https://github.com/eoeair/cenv/pkgs/container/cenv**
2024-12-05 20:59:25 +08:00
2024-12-10 02:11:10 +08:00
**Our Gitea: https://eoelab.org:1027/eoeair/cenv**
2024-12-05 20:59:25 +08:00
## Prerequisites
* CPU : nothing to do
* ROCM : amdgpu-dkms -> Docker containers share the kernel with the host OS. Therefore, the ROCm kernel-mode driver (amdgpu-dkms) must be installed on the host.
* CUDA : nvidia-container-toolkit/nvidia-docker2
## Platform
* OS : debian 12 / ubuntu 24.04(ROCM only)
* ARCH : x86_64
## Version
* cuda: 12.4
2024-12-08 15:36:00 +08:00
* rocm: 6.3
2024-12-05 20:59:25 +08:00
## Usage
### container
* CPU just `docker run -it`
* ROCM `docker run --device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined IMAGE`
### devcontainer(VScode)
`cp -r .devcontainer WORKSDIR`
## Image dependencies
2024-12-08 20:15:46 +08:00
* `Program` : development environment, primarily serving the devcontainer.
* `CI` : CI job environment
* `GS` : game server
2024-12-05 20:59:25 +08:00
```mermaid
graph LR
CPU-->B{Base}
CUDA-->B
ROCM-->B
2024-12-08 20:15:46 +08:00
B-->C{CI}
C-->CA(Hexo)
2024-12-10 02:11:10 +08:00
C-->CB(Jupyterlite)
2024-12-05 20:59:25 +08:00
2024-12-08 20:15:46 +08:00
B-->G{GS}-->GA{MC}-->GAA(JAVA)
2024-12-05 20:59:25 +08:00
GAA-->GAAA(JRE_8)
GAA-->GAAB(JRE_11)
GAA-->GAAC(JRE_17)
GAA-->GAAD(JRE_21)
G-->GB{MCSM}-->GBA(Web)
GB-->GBB(Daemon)
G-->GC(steam)-->GCA(steam_wine)
2024-12-08 20:15:46 +08:00
B-->P{PROGRAM}
P-->PA(C)
P-->PB(Cpp)
P-->PC(Java)
PC-->PCA(Jdk)
PC-->PCB(Jre)
P-->PD(Js)
P-->PE(Julia)
P-->PF(Python)
P-->PG(R)
2024-12-05 20:59:25 +08:00
```
## Upstream
* NVIDIA: https://gitlab.com/nvidia/container-images/cuda
* ROCM: https://github.com/ROCm/ROCm-docker
## Mirror source
* debian ustc: https://mirrors.ustc.edu.cn/help/debian.html
* ubuntu ustc: https://mirrors.ustc.edu.cn/help/ubuntu.html