Dealing with calling the MW install script maintenance/install.php
when the plugin is installed on the Tuleap side. It works well when I use a DB on the standard port.
However I'm not sure how to manage cases where a non standard port is used or the MySQL is only reachable over TLS. It looks like the maintenance/install.php
does not support this and I'm not sure how to automate the installation without it.
I can generate the LocalSettings.php file for MW directly without the install script and create the DB myself but that does not seem to work:
$ /opt/remi/php74/root/usr/bin/php /usr/share/mediawiki-tuleap-flavor/maintenance/install.php --confpath /etc/tuleap/plugins/mediawiki_standalone/ --pass azertyuiop123 TuleapFarmManagement tuleap_mediawikifarm_admin
PHP 7.4.29 is installed.
Warning: you have SQLite 3.7.17, which is lower than minimum required version 3.8.0. SQLite will be unavailable.
Warning: Could not find APCu or WinCache. Object caching is not enabled.
Found ImageMagick: /usr/bin/convert. Image thumbnailing will be enabled if you enable uploads.
Git version control software not found. You can ignore this for now. Note Special:Version will not display commit hashes.
Using server name "http://localhost".
Warning: No --scriptpath specified, using default: /wiki.
Using server URL "http://localhost/wiki".
Warning: Your default directory for uploads (/usr/share/mediawiki-tuleap-flavor/images/) is not checked for vulnerability to arbitrary script execution during the CLI install.
Using the PHP intl extension for Unicode normalization.
The environment has been checked. You can install MediaWiki.
Wikimedia\Services\ServiceDisabledException from line 412 of /usr/share/mediawiki-tuleap-flavor/vendor/wikimedia/services/src/ServiceContainer.php: Service disabled: DBLoadBalancer #0 /usr/share/mediawiki-tuleap-flavor/includes/MediaWikiServices.php(671): Wikimedia\Services\ServiceContainer->getService()
#1 /usr/share/mediawiki-tuleap-flavor/extensions/TuleapWikiFarm/TuleapWikiFarm.Dispatcher.php(10): MediaWiki\MediaWikiServices->getDBLoadBalancer()
#2 /usr/share/mediawiki-tuleap-flavor/extensions/TuleapWikiFarm/TuleapWikiFarm.setup.php(4): require_once('/usr/share/medi...')
#3 /data/etc/tuleap/plugins/mediawiki_standalone/LocalSettings.php(146): require_once('/usr/share/medi...')
#4 /usr/share/mediawiki-tuleap-flavor/includes/installer/Installer.php(661): require('/data/etc/tulea...')
#5 /usr/share/mediawiki-tuleap-flavor/includes/installer/CliInstaller.php(202): Installer::getExistingLocalSettings()
#6 /usr/share/mediawiki-tuleap-flavor/maintenance/install.php(140): CliInstaller->execute()
#7 /usr/share/mediawiki-tuleap-flavor/maintenance/doMaintenance.php(107): CommandLineInstaller->execute()
#8 /usr/share/mediawiki-tuleap-flavor/maintenance/install.php(201): require_once('/usr/share/medi...')
#9 {main}
Did I miss something or there is no way to automate this process?