个人镜像仓库,提供基于 Ubuntu 22.04/24.04 的 Rust + Conda 开发环境镜像。
| 镜像 | 标签 | 说明 |
|---|---|---|
| ubuntu-22.04 | ubuntu-22.04, ubuntu-22.04-rust-conda | Ubuntu 22.04 + Rust + Miniconda |
| ubuntu-24.04 | ubuntu-24.04, ubuntu-24.04-rust-conda, latest | Ubuntu 24.04 + Rust + Miniconda |
git, vim, curl, wgethtop, rsync, lsof, jqnet-tools, dnsutils, telnetzip, unzip, make, cmakecargo-edit, cargo-watch, cargo-treeTZ=Asia/Shanghai - 时区设置LANG=zh_CN.UTF-8 - 中文语言支持PATH 已包含 conda 和 cargo 的二进制路径在你的项目根目录创建 .cnb.yml:
image:
name: cnb.cool/your-namespace/images:ubuntu-24.04
# 拉取镜像
docker pull cnb.cool/your-namespace/images:ubuntu-24.04
# 运行容器
docker run -it --rm cnb.cool/your-namespace/images:ubuntu-24.04 bash
FROM cnb.cool/your-namespace/images:ubuntu-24.04
# 安装你的项目依赖
RUN pip install torch numpy pandas
RUN cargo install your-rust-tool
镜像中预置了以下别名:
# 通用
cl # clear
cdw # cd /workspace
cdr # cd /workspace && clear
# Python/Conda
py # python
py3 # python3
ca # conda activate
cel # conda env list
# Rust
cr # cargo run
cb # cargo build
ct # cargo test
cch # cargo check
本仓库使用 CNB 流水线自动构建镜像。支持以下触发方式:
main 或 master 分支时自动构建.
├── README.md
├── .cnb.yml # CNB 流水线配置
└── base/
├── ubuntu-22.04/
│ └── Dockerfile
└── ubuntu-24.04/
└── Dockerfile