Operations grimoire/Notifications center: Difference between revisions

From Nasqueron Agora
(Created page with "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...")
 
Line 8: Line 8:


== Start a new container ==
== Start a new container ==
run-notifications
<code>run-notifications</code>


== Upgrade a live container ==
== Upgrade a live container ==

Revision as of 03:19, 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

  1. Enter notifications container as app user
  2. Check we're on the master branch and the history is clean
  3.  Update code with git pull
  4. If composer has been touched, composer update (could be faster to docker pull, stop this container and start a new container)
  5.  If entered as root, fix ownership with chown -R app:app /var/wwwroot/default
  6.  Restart PHP FPM with sv restart php-fpm

Configuration as code.

This service should be properly defined in rOPS repository as a Salt state.