Operations grimoire/Notifications center
From Nasqueron Agora
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 :
docker exec -it --user=app notifications bash
- Check we're on the master branch and the history is clean
- Update code rebasing the production branch against origin/master
- 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
- Run
php optimize
to refresh compiled class - Restart again PHP FPM with
sv restart php-fpm
How to rebase against master?
git fetch
git checkout master
git rebase origin/master
git checkout production
git rebase master
Links
Configuration as code.
This service should be properly defined in rOPS repository as a Salt state.