Skip to content

Instantly share code, notes, and snippets.

@crosbymichael
Created June 8, 2013 01:27
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save crosbymichael/5733479 to your computer and use it in GitHub Desktop.
Save crosbymichael/5733479 to your computer and use it in GitHub Desktop.
# Builder file for sentry
#
FROM ubuntu
MAINTAINER Michael Crosby
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade
RUN apt-get install -y openssh-server git-core libxml2-dev curl python build-essential make gcc python-dev wget
RUN apt-get install -y postgresql-client-9.1 postgresql-client-common libpq5
RUN apt-get install -y libpq-dev
RUN wget http://python-distribute.org/distribute_setup.py
RUN python distribute_setup.py
RUN wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
RUN python get-pip.py
RUN pip install psycopg2
RUN pip install sentry
RUN wget https://gist.github.com/crosbymichael/5703399/raw/af71ae229cbf66ae6c7cf773e0d1042a0a30762a/sentry.conf.py
RUN apt-get install -y language-pack-en
RUN echo "export LANGUAGE=en_US.UTF-8" >> /etc/bash.bashrc
RUN echo "export LANG=en_US.UTF-8" >> /etc/bash.bashrc
RUN echo "export LC_ALL=en_US.UTF-8" >> /etc/bash.bashrc
RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
EXPOSE 9000
CMD /usr/local/bin/sentry --config=/sentry.conf.py start
@taylortrimble
Copy link

This is pretty awesome! Did you test this and get it up/running? Are you running it in production anywhere?

I may be working on a version of this that uses the recommended postgresql/etc. setup soon. Including:

  • Memcached

  • Redis

  • Queueing

  • Buffering

  • Set the private key discreetly

    Do you have any advice? It seems like a pretty big undertaking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment