File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,22 @@ tags:
16
16
3 . ** 安全性考量** :避免依賴外部不穩定的來源,降低供應鏈攻擊風險
17
17
4 . ** 內部套件分發** :團隊開發的內部工具需要有管道分發
18
18
19
- ## 架構設計
20
-
21
- 整體架構分為三個層次:
22
-
23
- ``` text
24
- ┌───────────────────────┐
25
- │ GitLab CI/CD │ → 自動化構建與發布
26
- ├───────────────────────┤
27
- │ Package Registry │ → 私有套件儲存
28
- ├───────────────────────┤
29
- │ Project Dependencies │ → 專案依賴管理
30
- └───────────────────────┘
31
- ```
19
+ ## 私有 Registry 運作流程
20
+
21
+ 私有 Package Registry 的運作包含三個階段:
22
+
23
+ 1 . ** 套件發布階段**
24
+ 開發者 → 推送程式碼 → GitLab CI/CD → 構建套件 → 推送至 Package Registry
25
+
26
+ 2 . ** 套件管理階段**
27
+ Package Registry ← 特製版本套件(如 onnxruntime-gpu for Jetson)
28
+ ← 內部工具套件
29
+ ← 安全審核過的第三方套件
30
+
31
+ 3 . ** 套件使用階段**
32
+ 專案 pyproject.toml → 指定私有來源 → 安裝依賴 → 取得正確版本
33
+
34
+ 這樣確保所有環境都使用一致且可控的套件版本。
32
35
33
36
## 實作步驟
34
37
You can’t perform that action at this time.
0 commit comments