Operations grimoire/Notifications center: Difference between revisions
From Nasqueron Agora
(+links) |
|||
Line 17: | Line 17: | ||
# If entered as root, fix ownership with <code>chown -R app:app /var/wwwroot/default</code> | # If entered as root, fix ownership with <code>chown -R app:app /var/wwwroot/default</code> | ||
# Restart PHP FPM with <code>sv restart php-fpm</code> | # Restart PHP FPM with <code>sv restart php-fpm</code> | ||
== Links == | |||
# [https://devcentral.nasqueron.org/diffusion/NOTIF/ Source code] | |||
# [https://devcentral.nasqueron.org/tag/notifications_center/ DevCentral board] | |||
{{Configuration as Code}} | {{Configuration as Code}} |
Revision as of 03:21, 22 July 2016
The notifications centers is an HTTP to HTTP and HTTP to AQMP gateway for our CI infrastructure.
It allows to receive events from GitHub, Docker Hub and Phabricator, and send them to a RabbitMQ broker (white-rabbit) or Phabricator.
Requirements
Start a new container
run-notifications
Upgrade a live container
- Enter notifications container as app user
- Check we're on the master branch and the history is clean
- Update code with
git pull
- If composer has been touched,
composer update
(could be faster to docker pull, stop this container and start a new container) - If entered as root, fix ownership with
chown -R app:app /var/wwwroot/default
- Restart PHP FPM with
sv restart php-fpm
Links
Configuration as code.
This service should be properly defined in rOPS repository as a Salt state.