nextcloud / nextcloud/workflow_script

Execute scripts from docker container

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

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

主要言語
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?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

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

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