icinga-php-thirdparty/README.md

52 lines
1.4 KiB
Markdown
Raw Normal View History

Icinga Web 2 - ReactPHP-based 3rd party libraries
=================================================
This repository is an attempt to ship 3rd party libraries that might be useful
for asynchronous PHP-based Icinga Web 2 modules. Please download the latest
release and install it like any other module.
> **HINT**: Do NOT install the GIT master, it will not work! Checking out a
2019-05-16 17:35:34 +02:00
> branch like `stable/0.6.0` or a tag like `v0.6.0` is fine.
2018-11-09 21:33:43 +01:00
Sample Tarball installation
---------------------------
```sh
MODULE_NAME=reactbundle
2019-05-16 17:35:34 +02:00
MODULE_VERSION=v0.6.0
MODULES_PATH="/usr/share/icingaweb2/modules"
2019-03-26 06:32:15 +01:00
MODULE_PATH="${MODULES_PATH}/${MODULE_NAME}"
RELEASES="https://github.com/Icinga/icingaweb2-module-${MODULE_NAME}/archive"
mkdir "$MODULE_PATH" \
&& wget -q $RELEASES/${MODULE_VERSION}.tar.gz -O - \
| tar xfz - -C "$MODULE_PATH" --strip-components 1
icingacli module enable "${MODULE_NAME}"
```
2017-10-27 14:41:48 +02:00
2018-11-09 21:33:43 +01:00
Sample GIT installation
-----------------------
```sh
MODULE_NAME=reactbundle
2019-05-16 17:35:34 +02:00
MODULE_VERSION=v0.6.0
REPO="https://github.com/Icinga/icingaweb2-module-${MODULE_NAME}"
MODULES_PATH="/usr/share/icingaweb2/modules"
git clone ${REPO} "${MODULES_PATH}/${MODULE_NAME}" --branch "${MODULE_VERSION}"
icingacli module enable "${MODULE_NAME}"
2018-11-09 21:33:43 +01:00
```
Developer Documentation
-----------------------
2017-10-27 14:41:48 +02:00
2018-11-09 21:33:43 +01:00
### Add a new dependency
2017-10-27 14:41:48 +02:00
composer require author/library:version
2018-11-09 21:33:43 +01:00
### Create a new release
2017-10-27 14:41:48 +02:00
./bin/make-release.sh <version>
e.g.
2019-05-16 17:35:34 +02:00
./bin/make-release.sh 0.6.0