Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持统一配置私有镜像仓库账户密码。解决用户从镜像开始部署应用的问题 #1821

Closed
Tracked by #1805
yangkaa opened this issue Jan 4, 2024 · 2 comments
Assignees
Milestone

Comments

@yangkaa
Copy link
Collaborator

yangkaa commented Jan 4, 2024

1. 目的

私有镜像仓库每次构建用户都需要输入账号密码,我们本次优化使用户能够方便地搜索仓库列表、标签,并统一管理与配置镜像仓库授权信息。

2. 设计思路

设计思路包括以下使用流程:

  • 搜索仓库列表及标签: 用户可以从各大镜像仓库直接搜索镜像,并根据需要筛选标签。
  • 配置镜像仓库授权信息: 用户可以查看、新增、编辑、删除已配置的仓库密码信息,并将其统一管理。

3. 需求

3.1 搜索仓库列表及标签

用户可以在支持搜索功能的镜像仓库中直接搜索镜像。搜索过程涉及两个步骤:

  • 从镜像仓库中搜索镜像
  • 从所选镜像中搜索标签

支持搜索的仓库有:

  • ✅ docker.io
  • ✅ harbor
  • ⭕ 阿里云
  • ⭕ 腾讯云
  • ⭕ 华为云

3.2 配置镜像仓库授权信息

用户在选择镜像并填写账号密码时,系统将自动保存到镜像仓库授权信息中,以便下次选择时直接使用。需要修改的部分包括:

  • 团队视图:
    • 从容器/镜像创建
  • 应用视图:
    • 从容器/镜像创建

默认情况下,添加镜像时以docker.io仓库为默认,用户可选择其他仓库。系统应支持解析 registry.cn-hangzhou.aliyuncs.com/yangkaa/lobe-chat:latest 为两部分,即:

  • docker.io
  • registry.cn-hangzhou.aliyuncs.com

4. 技术实现

实现上述功能需要考虑的技术细节,包括但不限于:

  • 与各大镜像仓库的API交互
  • 密码信息的安全存储与加密
  • 解析镜像地址的算法

5. 统一管理

在团队视图下进行统一管理,包括:

  • 镜像仓库授权信息:
    • 镜像仓库地址
    • 用户名
    • 密码
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Supports unified configuration of private image warehouse account passwords. Solve the problem of users deploying applications from images

@yangkaa yangkaa added this to the 5.17.0 milestone Jan 4, 2024
@yangkaa
Copy link
Collaborator Author

yangkaa commented Jan 4, 2024

需要考虑该 issues,即 http 镜像仓库的支持 #1689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Test
Development

No branches or pull requests

3 participants