cloud-py-api / cloud_py_api

Nextcloud framework for developing apps using Python
https://apps.nextcloud.com/apps/cloud_py_api
GNU Affero General Public License v3.0
50 stars 7 forks source link

Containerization #57

Closed bigcat88 closed 1 year ago

bigcat88 commented 1 year ago

This is a tracking issue for the release 0.2.0.

Currently we have 3 problems:

  1. If files are encrypted or besides on a remote location, we use occ request to get them from PHP
  2. Notification to php is not universal and work with using occ for this, those only locally.
  3. PHP starts binary using exec when task starts.

Suggestions for a solution

  1. Use WebDAV in these cases for now, in future just add support to asking files from remote locations using python libraries.
  2. Register universal API endpoint, firing appropriate event, that underlined apps can handle to get task finished payload.
  3. Binary placed to auto start when it is a container, register handler using FastAPI and wait till php connect to it and gives a task name to start. For Authentication of PHP request in this case used some data from database. 3a. When not a container PHP starts binary if it was not started before and works with the same way as in point 3.
bigcat88 commented 1 year ago

Closed as AppEcosystem Project will support containerisation from start.