Skip to content

Instantly share code, notes, and snippets.

@bodsch
Last active November 10, 2018 10:26
Show Gist options
  • Save bodsch/4ea55240d7c4b0706d8504eba6b975fc to your computer and use it in GitHub Desktop.
Save bodsch/4ea55240d7c4b0706d8504eba6b975fc to your computer and use it in GitHub Desktop.
install icingaweb2-module-vspheredb in alpine
apk add php7-phar php7-sockets php7-pcntl
cd /usr/bin/
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
ln -s composer.phar composer
cd /usr/share/webapps/icingaweb2-2.6.1/modules/vspheredb/
composer install
@bodsch
Copy link
Author

bodsch commented Nov 9, 2018

hard dependency to fucking systemd :(

/usr/bin/icingacli vspheredb daemon run
PHP Fatal error:  Uncaught Error: Class 'gipfl\SystemD\NotifySystemD' not found in /usr/share/webapps/icingaweb2-2.6.1/modules/vspheredb/library/Vspheredb/Daemon/Daemon.php:80
Stack trace:
#0 /usr/share/webapps/icingaweb2-2.6.1/modules/vspheredb/application/clicommands/DaemonCommand.php(26): Icinga\Module\Vspheredb\Daemon\Daemon->run()
#1 /usr/share/webapps/icingaweb2-2.6.1/library/Icinga/Cli/Loader.php(265): Icinga\Module\Vspheredb\Clicommands\DaemonCommand->runAction()
#2 /usr/share/webapps/icingaweb2-2.6.1/library/Icinga/Application/Cli.php(149): Icinga\Cli\Loader->dispatch()
#3 /usr/share/webapps/icingaweb2-2.6.1/library/Icinga/Application/Cli.php(139): Icinga\Application\Cli->dispatchOnce()
#4 /usr/share/webapps/icingaweb2-2.6.1/bin/icingacli(7): Icinga\Application\Cli->dispatch()
#5 {main}
  thrown in /usr/share/webapps/icingaweb2-2.6.1/modules/vspheredb/library/Vspheredb/Daemon/Daemon.php on line 80

Fatal error: Uncaught Error: Class 'gipfl\SystemD\NotifySystemD' not found in /usr/share/webapps/icingaweb2-2.6.1/modules/vspheredb/library/Vspheredb/Daemon/Daemon.php:80
Stack trace:
#0 /usr/share/webapps/icingaweb2-2.6.1/modules/vspheredb/application/clicommands/DaemonCommand.php(26): Icinga\Module\Vspheredb\Daemon\Daemon->run()
#1 /usr/share/webapps/icingaweb2-2.6.1/library/Icinga/Cli/Loader.php(265): Icinga\Module\Vspheredb\Clicommands\DaemonCommand->runAction()
#2 /usr/share/webapps/icingaweb2-2.6.1/library/Icinga/Application/Cli.php(149): Icinga\Cli\Loader->dispatch()
#3 /usr/share/webapps/icingaweb2-2.6.1/library/Icinga/Application/Cli.php(139): Icinga\Application\Cli->dispatchOnce()
#4 /usr/share/webapps/icingaweb2-2.6.1/bin/icingacli(7): Icinga\Application\Cli->dispatch()
#5 {main}
  thrown in /usr/share/webapps/icingaweb2-2.6.1/modules/vspheredb/library/Vspheredb/Daemon/Daemon.php on line 80

@bodsch
Copy link
Author

bodsch commented Nov 10, 2018

wenn man die stabilen releases nimmt braucht man den composer zirkus nicht

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment