Langchain-Chatchat/docker/Image Build & YAML Setup.md
liunux4odoo 5c650a8dc3
优化目录结构 (#4058)
* 优化目录结构

* 修改一些测试问题

---------

Co-authored-by: glide-the <2533736852@qq.com>
2024-05-22 13:11:45 +08:00

30 lines
678 B
Markdown
Raw Permalink 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.

# 创建代码根目录
mkdir /home/langchain
## 切换代码根目录
cd /home/langchain
## 拉取仓库代码
git clone https://github.com/chatchat-space/Langchain-Chatchat.git .
## 切换Configs文件夹复制所有的配置档并去除文档后缀.example
/home/langchain/configs/
## 配置key
/home/langchain/configs/model_config.py
## 切换代码根目录
cd /home/langchain
## 制作镜像(自行修改镜像名称与版本号)
docker build -t {image_name}:{image_tag} .
## 修改YAML里的镜像名称与版本号
langchain_sample.yaml
## 创建K8S资源
kubectl apply -f langchain_sample.yaml
## 删除K8S资源
kubectl delete -f langchain_sample.yaml