SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.04k stars 1.23k forks source link

[Package Request] Filerun (paid job) #3162

Open filerun opened 6 years ago

filerun commented 6 years ago

Anybody available for a paid job for packaging a LAMP app?

Safihre commented 6 years ago

What software do you want exactly?

filerun commented 6 years ago

This one: http://www.filerun.com/

cytec commented 6 years ago

I see three Problems for this particular app:

  1. you'll have to have WebStation with PHP7 and some extensions (afaik there is currently no way to depend on everything except Webstation)
  2. you'll need to edit the php.ini file to add the ionCube loader, which might break once Webstation is updated, or anything is changed in the WebStation configuration
  3. you'll have to change open_basedir to include path's you want to be able to access

while it would be possible to create some kind of notification that the user should make some changes to WebStation (install PHP7, activate extensions, change open_basedir) in order to install the SPK the biggest problem in my opinion is to make sure that the ionCube loader extension is loaded correctly even after a WebStation update and/or configuration change.

For Intel based systems i'd go with the docker install instead.

filerun commented 6 years ago

PHP 7 is not a requirement, FileRun can work fine also with PHP 5.6. Although, to be honest, if PHP 7 is a valid option, is a huge step backwards to still develop for PHP 5.

The Docker way is a good option in my opinion, and I even wrote a detailed tutorial for people to set it up. But I still see non-technical people struggling with it.

I wrote also a detailed tutorial for people to install it via WebStation. With ionCube and everything. Updates or changes in the server setup used to be a problem, but not anymore. Perhaps it's the newer DSM updates which fix this. I can lately make any changes to WebStation, get updates installed, and still have the PHP configuration customization preserved.

I am attempting to make the package myself, taking KodExplorer as an example, which seems to be designed to use NGINX instead of Apache. It even includes customizations to the PHP configuration, making sure some PHP extensions are loaded. But I find the Synology documentation very limited, and I am thinking that somebody with more experience might do a better job than me.

cytec commented 6 years ago

If updates don't mess with the settings anymore that would be a huge step.

yeah Documentation is kind of limited and very basic. personally i didn't make a NGINX package before so i cant provide you more support on that one but the general approach i'd go with would be something like:

create a spk, download the needed files (put ionloader in the package folder as well and link/inlcude it from there). still not sure how to make sure that the right modules are installed but that could be done with a wizzard step at the end which lists all modules and prefered settings for webstation or something like that... maybe someone with more experience on WebStation Packages could give you some more insight on that!