此仓库是其他仓库及基本库,使用 Dockerfile 自定义环境,并构建发布到制品库,方便其他仓库使用。
由于在 .cnb.yml 中定义自动构建较慢,因此需要手动构建并发布。 构建命令
docker build -t docker.cnb.cool/the_ring/develope_base:latest -f .ide/Dockerfile .
发布命令
docker push docker.cnb.cool/the_ring/develope_base:latest
定义自动构建并发布脚本
./buildAndPush.sh
在需要使用的仓库的 .cnb.yml 中添加如下内容
build:
- name: 构建基础镜像
image: docker.cnb.cool/the_ring/develope_base:latest
runner:
tags: cnb:arch:amd64:gpu
services:
- vscode
- docker
stages:
- name: start ollama
script: nohup ollama serve >/dev/null 2>&1 &