project-rainstorm / rainstorm

The easiest way to own your cloud. Your data. Your cloud. Rainstorm.
Other
10 stars 5 forks source link

[Services] Pre-install script #75

Closed nullcount closed 4 years ago

nullcount commented 4 years ago

The matrix-synapse docker image requires running a generate command to create the config file. Then you run the compose file again with no command to run the server. Our current system for deploying services does not support this.

Other images require preinstall commands as well.

One possible solution is to check the service folder for a install.sh script. If there is such a script run it. That way service maintainers can include the preinstall commands in there. For this to work as intended, there needs to be some concept of a FIRST time enabling of a service. Maybe just a check for the presence of the service data folder on the HDD is enough.