The goal of this project is to package sentry for debian. It leverages dh-virtualenv to perform the actual work. The primary OS target is debian 8 "jessie"; It might or might not work on other debian and debian based systems.
-
Add Dhatim Bintray's debian repository in sources.list:
echo "deb http://dl.bintray.com/dhatim/deb stable main" | sudo tee -a /etc/apt/sources.list
-
If it is the first repository from Bintray that you add, you will also need to add Bintray's public key to apt:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
-
Install the
sentry
package:sudo apt-get update && sudo apt-get install sentry
The target sentry version is 8.14.0. postinst calls sentry init /etc/sentry/sentry.conf.py
if this file doesn't exist already, so as
to provide a sample configuration file.
The package adds a dependency on the postgresql driver, so it is ready to use with a postgresql database.
The package is made to depend on supervisor, and provides a suitable supervisor configuration file so that sentry server and workers start as services, managed by supervisor.
Please note that The sentry service won't start by default on package installation. You'll have to configure whatever it is that needs to be configured, and tickle supervisor so it picks up the changes, i.e.:
# supervisorctl reread
# supervisorctl update
$ sudo supervisorctl stop sentry-web
sentry-web: stopped
$ sudo supervisorctl stop sentry-worker
sentry-worker: stopped
$ sudo apt-get update
$ sudo apt-get install sentry
$ sudo /usr/share/python/sentry/bin/sentry --config /etc/sentry/sentry.conf.py upgrade
...
$ sudo supervisorctl start sentry-worker
sentry-worker: started
$ sudo supervisorctl start sentry-web
sentry-web: started