Ability to override the default persistent volume mount

未關閉
#668 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
docker, php

研究方向

從 occ app_api:app:register 入口點開始,追蹤 --mount 選項和持久性磁碟區如何對應到 Docker 容器中。使用指向 /nc_app_APP_ID_data 的 mount 重現範例註冊,然後驗證明確指定的 mount 會取代持久性磁碟區,且 app 移除後資料仍然保留。

由索引模型根據 Issue 內容生成。

描述

enhancement priority: low
Describe why it is important and where it will be useful

Most if not all apps put their persistent data in this volume so it would be nice to override it so the local data can be used/the data can be kept even after the ex-app is removed completely (with data).

Describe your proposed solution

Check for the mount mapping in the docker container, if it tries to bind the exact same path as the persistent volume, do not try to mount the persistent volume and use this one.
A sample ex-app register command to mount a volume:

occ app_api:app:register APP_ID harp_proxy_docker --wait-finish --mount /path/in/local/storage/persistent_storage_my_app:/nc_app_APP_ID_data
Describe alternatives you've considered, if relevant

No response

Additional context

No response

主要語言
PHP
星號
202
分支
30
平均合併
3 天 20 小時
30 天內合併 PR
24

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nextcloud/app_api 的其他 Issue

查看 nextcloud/app_api 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。