Skip to content

Instantly share code, notes, and snippets.

@crosbymichael
Created June 8, 2013 01:27
Show Gist options
  • Select an option

  • Save crosbymichael/5733479 to your computer and use it in GitHub Desktop.

Select an option

Save crosbymichael/5733479 to your computer and use it in GitHub Desktop.

Revisions

  1. crosbymichael created this gist Jun 8, 2013.
    36 changes: 36 additions & 0 deletions sentry.docker
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    # 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