Skip to content

Instantly share code, notes, and snippets.

@brutasse
Created July 16, 2015 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brutasse/ef45c2c60e7dec9a6903 to your computer and use it in GitHub Desktop.
Save brutasse/ef45c2c60e7dec9a6903 to your computer and use it in GitHub Desktop.
sudo apt-get -y install python-virtualenv libxslt1-dev libxml2-dev python-virtualenv-tools
export VERSION=`date +"%Y.%m.%d"`.$BUILD_NUMBER
mkdir -p build/usr/share/python
virtualenv build/usr/share/python/sentry
build/usr/share/python/sentry/bin/pip install -U pip wheel distribute
build/usr/share/python/sentry/bin/pip uninstall -y distribute
build/usr/share/python/sentry/bin/pip install sentry[mysql] dj-database-url hiredis dj-redis-url django-redis-cache
find build ! -perm -a+r -exec chmod a+r {} \;
mkdir -p build/etc
cd build/etc
wget https://gist.githubusercontent.com/brutasse/foo/raw/bar/sentry.conf.py
cd -
cd build/usr/share/python/sentry
virtualenv-tools --update-path /usr/share/python/sentry
cd -
find build -iname *.pyc -exec rm {} \;
find build -iname *.pyo -exec rm {} \;
fpm -t deb -s dir -C build -d libxslt1.1 -d libxml2 -d libffi6 -n sentry -v $VERSION .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment