Skip to content

Commit

Permalink
Update sentry files
Browse files Browse the repository at this point in the history
  • Loading branch information
crosbymichael committed Jul 16, 2013
1 parent 306f0a5 commit e6995cf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 44 deletions.
20 changes: 11 additions & 9 deletions sentry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt
RUN apt-get update
RUN apt-get upgrade

RUN apt-get install -y language-pack-en
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales

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
Expand All @@ -21,16 +29,10 @@ RUN python get-pip.py
RUN pip install psycopg2
RUN pip install sentry

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

ADD sentry.conf.py /sentry.conf.py

CMD /usr/local/bin/sentry --config=/sentry.conf.py start
ENTRYPOINT ["/usr/local/bin/sentry", "--config=/sentry.conf.py"]

CMD ["upgrade"]
48 changes: 13 additions & 35 deletions sentry/sentry.conf.py
Original file line number Diff line number Diff line change
@@ -1,48 +1,26 @@
import os.path
import os

CONF_ROOT = os.path.dirname(__file__)

database_name = os.environ.get('SENTRY_NAME', 'sentry')
database_user = os.environ.get('SENTRY_USER', 'sentry')
database_password = os.environ.get('SENTRY_PASS', 'sentry')
database_host = os.environ.get('SENTRY_HOST', '127.0.0.1')
database_port = os.environ.get('SENTRY_PORT', '')

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'sentry', # Or path to database file if using sqlite3.
'USER': 'sentry', # Not used with sqlite3.
'PASSWORD': 'sentry', # Not used with sqlite3.
'HOST': '192.168.1.9', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
'NAME': database_name, # Or path to database file if using sqlite3.
'USER': database_user, # Not used with sqlite3.
'PASSWORD': database_password, # Not used with sqlite3.
'HOST': database_host, # Set to empty string for localhost. Not used with sqlite3.
'PORT': database_port, # Set to empty string for default. Not used with sqlite3.
}
}

# If you're expecting any kind of real traffic on Sentry, we highly recommend configuring
# the CACHES and Redis settings

# CACHES = {
# 'default': {
# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
# 'LOCATION': ['127.0.0.1:11211'],
# }
# }

# Buffers (combined with queueing) act as an intermediate layer between the database and
# the storage API. They will greatly improve efficiency on large numbers of the same events
# being sent to the API in a short amount of time.

# SENTRY_USE_QUEUE = True
# For more information on queue options, see the documentation for Celery:
# http://celery.readthedocs.org/en/latest/
# BROKER_URL = 'redis://localhost:6379'

# SENTRY_BUFFER = 'sentry.buffer.redis.RedisBuffer'
# SENTRY_BUFFER_OPTIONS = {
# 'hosts': {
# 0: {
# 'host': '127.0.0.1',
# 'port': 6379,
# }
# }
# }

SENTRY_KEY = '333dkdslyvBUGWq5bcnW9d1MZQ82qmPZB4pskKS3223fdBfuhySw=='
SENTRY_KEY = os.environ.get('SENTRY_KEY', '333dkdslyvBUGWq5bcnW9d1MZQ82qmPZB4pskKS3223fdBfuhySw==')

# Set this to false to require authentication
SENTRY_PUBLIC = False
Expand Down

0 comments on commit e6995cf

Please sign in to comment.