Skip to content

Commit a47232d

Browse files
Merge pull request #77 from codefuse-ai/workflow_image
docs: add markdown about dockerimage load
2 parents 27d8265 + 9f00738 commit a47232d

File tree

8 files changed

+48
-4
lines changed

8 files changed

+48
-4
lines changed

.github/workflows/docker-image-pull.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
matrix:
1111
architecture: [amd64, arm64]
1212
os: [linux]
13-
service: [runtime:0.1.0, ekgservice:0.1.0, ekgfrontend:0.1.0]
13+
service:
14+
- name: runtime:0.1.0
15+
- name: ekgservice:0.1.0
16+
- name: ekgfrontend:0.1.0
1417

1518
steps:
1619
- name: Checkout code
@@ -28,6 +31,6 @@ jobs:
2831
docker login --username=${{ secrets.ALIYUN_USERNAME }} --password=${{ secrets.ALIYUN_PASSWORD }} registry.cn-hangzhou.aliyuncs.com
2932
3033
# 使用Dockerfile构建镜像
31-
docker pull --platform ${{ matrix.os }}/${{ matrix.architecture }} ghcr.io/codefuse-ai/${{ matrix.service }}
32-
docker tag ghcr.io/codefuse-ai/${{ matrix.service }} registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service }}-${{ matrix.architecture }}
33-
docker push registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service }}-${{ matrix.architecture }}
34+
docker pull --platform ${{ matrix.os }}/${{ matrix.architecture }} ghcr.io/codefuse-ai/${{ matrix.service.name }}
35+
docker tag ghcr.io/codefuse-ai/${{ matrix.service.name }} registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service.name }}-${{ matrix.architecture }}
36+
docker push registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service.name }}-${{ matrix.architecture }}

docs/gh_image_to_aliyun_image.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
3+
## 1、使用google/baidu 搜索 阿里云镜像服务
4+
5+
## 2、登录后点击管理控制台
6+
![](resources/aliyun_01.webp)
7+
8+
## 3、点击个人实例,如果没有就生成一个(免费的)
9+
![](resources/aliyun_02.webp)
10+
11+
## 4、创建命名空间,取名 muagent,默认私人仓库
12+
![](resources/aliyun_03.webp)
13+
14+
## 5、配置访问凭证
15+
![](resources/aliyun_04.webp)
16+
17+
## 6、fork codefuse-muagent仓库
18+
19+
## 7、去fork的仓库settings下配置密钥
20+
```bash
21+
ALIYUN_USERNAME={见访问凭证处的username}
22+
ALIYUN_PASSWWORD={配置访问凭证}
23+
```
24+
![](resources/aliyun_05.webp)
25+
26+
## 8、手动触发将指定镜像同步到个人的阿里云镜像,然后执行本地命令进行拉取阿里云镜像
27+
![](resources/aliyun_06.webp)
28+
29+
```bash
30+
# 本地执行拉取镜像
31+
# 示例,仅支持ekgfrontend、runtime、ekgservice;其他镜像根据需求对docker-image-pull进行修改
32+
33+
# 登录阿里云镜像库
34+
docker login --username=dingtalk_rgfdbw registry.cn-hangzhou.aliyuncs.com
35+
36+
# 拉取amd版本的runtime
37+
docker pull registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-amd64
38+
39+
# 改成docker-compose.yaml 可以直接使用的版本
40+
docker tag registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-amd64 runtime:0.1.0
41+
```

docs/resources/aliyun_01.webp

16.9 KB
Binary file not shown.

docs/resources/aliyun_02.webp

15.8 KB
Binary file not shown.

docs/resources/aliyun_03.webp

10.3 KB
Binary file not shown.

docs/resources/aliyun_04.webp

10.8 KB
Binary file not shown.

docs/resources/aliyun_05.webp

30.7 KB
Binary file not shown.

docs/resources/aliyun_06.webp

37.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)