syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
400 stars 40 forks source link

Create own web app #491

Closed klmhsb42 closed 4 years ago

klmhsb42 commented 4 years ago

I'm developing a website, in which I would like to integrate other apps (like nextcloud, gogs, etc.) and the easiest would be to integrate the webside as snap app into my syncloud. I would like to try that, but I haven't understand the snap concept 100% yet (I'm reading docs/tutorials of course).

I have a few questions about the App porting guide, which could bring me to the right way.

The website uses apache server, php, mysql with phpmyadmin and all web code is under var/www/html

In a simple way asked: Do I need to put all system files of apache server, php and mysql into the snap package? Or even more system files? Or is there just one server (I know, you use nginx) installed in the system and all apps use just the same server?

Same question about app databases: How could I maintained them with phpmyadmin? This would run on another port.

And if I have my snap package, which directory in syncloud root would be the best to move the snap package there for installation (as I can't install from app center). I've seen that I don't have always write rights even as root per ssh.

klmhsb42 commented 4 years ago

I would also like to know, how your updates/installation works. I guess you set somewhere in your script a link to download the source code from original repositories (as you don't store all the source code of nextcloud etc. in your app center)? And the app center is stored on the device (syncloud os) and does not load from syncloud.it?

klmhsb42 commented 4 years ago

Same question about app databases: How could I maintained them with phpmyadmin? This would run on another port.

494 I think I understand, that this could be as own app. And if it's installed, I would see all databases in the app which all other apps are using, like gogs is using mysql, too. Correct?

klmhsb42 commented 4 years ago

I got it, I can install from 3rdparty repo like https://github.com/syncloud/3rdparty/tree/master/mariadb

klmhsb42 commented 4 years ago

I got now, that /path/to/cli/drone means not directory, it's the file /path/to/cli/.drone.yml (sorry my mistake).

My problem is, that if I run /path/to/cli/drone jsonnet --stream I get Permission denied even as root (with su).

If I run arch=[amd64|arm] /path/to/cli/drone exec --trusted I get bash: arm]: command not found, so I guess I have to run always /path/to/cli/drone jsonnet --stream?

And I guess arch=[amd64|arm] /path/to/cli/drone exec --trusted will create package.snap?

klmhsb42 commented 4 years ago

so I guess I have to run always /path/to/cli/drone jsonnet --stream?

ok, you said that already, sorry.