Ability to override the default persistent volume mount

オープン
#668 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, php

調査の方向性

occ app_api:app:register エントリポイントから始め、--mount オプションと永続ボリュームが Docker コンテナにどのようにマッピングされるかを追跡します。/nc_app_APP_ID_data を対象とするマウントを指定してサンプル登録を再現し、明示的なマウントが永続ボリュームを置き換えること、およびアプリが削除された後もデータが残ることを検証します。

索引モデルが 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時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/app_api のほかの issue

nextcloud/app_api の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。