nextcloud / nextcloud/workflow_script
Execute scripts from docker container
まだ誰も着手していません。
- 主要言語
- PHP
- スター
- 89
- フォーク
- 19
- 平均マージ
- 6時間 38分
- マージ済み PR(30日)
- 3
説明
Hi everyone,
I am running NextCloud within docker (based on “with-nginx-proxy/mariadb/fpm”) which works very well. But I can not get Flow working with external scripts.
I want to run a script when a defined file is opened. I have installed the “external script” app and configured a flow with:
“File accessed” and file name is “nextcloud_flow_test.txt” run script at “/var/www/html/config/test.sh”.
But the script is not executed when accessing the file from my NextCloud Webinterface.
The script itself is accessable from the docker container. I started it via an interactive shell from the container (docker exec -it nextcloud bash). Currently the script just inserts the current date to a text file (date >> test.txt) which works fine when executed manually.
Is there anything I am missing?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、説明されているとおりに docker exec を使用し、/var/www/html/config/test.sh にある外部スクリプトで、設定済みの「File accessed」Flow を再現します。手動実行では動作するのに Flow では動作しない理由を特定するため、workflow_script アプリとコンテナの実行コンテキストを確認します。nextCloud_flow_test.txt を開いたときにスクリプトが実行され、test.txt に日付が追記されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, php
- 領域
- backend, devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100