-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 383ec06
Showing
4 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM ubuntu | ||
|
||
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | ||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
|
||
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 | ||
RUN apt-get install -y mysql-client | ||
RUN apt-get install -y libmysqlclient-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 pip install MySQL-python | ||
|
||
EXPOSE 9000 | ||
|
||
ADD sentry.conf.py /sentry.conf.py | ||
ADD admin_user.json /initial_data.json | ||
|
||
ENTRYPOINT ["/usr/local/bin/sentry", "--config=/sentry.conf.py"] | ||
|
||
CMD ["start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Sentry in Docker | ||
---------------- | ||
|
||
Forked from crosbymichael/docker-cookbooks this is a continuation of his work. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"pk": 1, | ||
"model": "auth.user", | ||
"fields": { | ||
"username": "admin", | ||
"first_name": "", | ||
"last_name": "", | ||
"is_active": true, | ||
"is_superuser": true, | ||
"is_staff": true, | ||
"last_login": "2013-10-04T23:58:16Z", | ||
"groups": [], | ||
"user_permissions": [], | ||
"password": "pbkdf2_sha256$10000$TinFrvc34uKO$pOCziU7HO9ttS/0pkvp9SyfBiDcWQUc5fdk5GKTJpGc=", | ||
"email": "[email protected]", | ||
"date_joined": "2013-10-04T23:58:16Z" | ||
} | ||
} | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import base64 | ||
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': os.environ.get('SENTRY_ENGINE', 'django.db.backends.sqlite3'), # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | ||
'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. | ||
} | ||
} | ||
|
||
SENTRY_KEY = os.environ.get('SENTRY_KEY', base64.urlsafe_b64encode(os.urandom(50))) | ||
|
||
|
||
# Set this to false to require authentication | ||
SENTRY_PUBLIC = False | ||
SENTRY_ALLOW_REGISTRATION = False | ||
|
||
SERVER_EMAIL = os.environ.get('SENTRY_EMAIL_FROM', 'root@localhost') | ||
|
||
# You should configure the absolute URI to Sentry. It will attempt to guess it if you don't | ||
# but proxies may interfere with this. | ||
# SENTRY_URL_PREFIX = 'http://sentry.example.com' # No trailing slash! | ||
|
||
SENTRY_WEB_HOST = '0.0.0.0' | ||
SENTRY_WEB_PORT = 9000 | ||
SENTRY_WEB_OPTIONS = { | ||
'workers': 3, # the number of gunicorn workers | ||
'secure_scheme_headers': {'X-FORWARDED-PROTO': 'https'}, # detect HTTPS mode from X-Forwarded-Proto header | ||
} | ||
|
||
# Mail server configuration | ||
|
||
# For more information check Django's documentation: | ||
# https://docs.djangoproject.com/en/1.3/topics/email/?from=olddocs#e-mail-backends | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' if os.environ.get('SENTRY_EMAIL_ENABLED') else 'django.core.mail.backends.console.EmailBackend' | ||
|
||
EMAIL_HOST = os.environ.get('SENTRY_EMAIL_HOST', 'localhost') | ||
EMAIL_HOST_PASSWORD = os.environ.get('SENTRY_EMAIL_PASSWORD', '') | ||
EMAIL_HOST_USER = os.environ.get('SENTRY_EMAIL_USER','') | ||
EMAIL_PORT = os.environ.get('SENTRY_EMAIL_PORT', 25) | ||
EMAIL_USE_TLS = os.environ.get('SENTRY_EMAIL_USE_TLS', False) | ||
|
||
# http://twitter.com/apps/new | ||
# It's important that input a callback URL, even if its useless. We have no idea why, consult Twitter. | ||
TWITTER_CONSUMER_KEY = os.environ.get('TWITTER_CONSUMER_KEY') | ||
TWITTER_CONSUMER_SECRET = os.environ.get('TWITTER_CONSUMER_SECRET') | ||
|
||
# http://developers.facebook.com/setup/ | ||
FACEBOOK_APP_ID = os.environ.get('FACEBOOK_APP_ID') | ||
FACEBOOK_API_SECRET = os.environ.get('FACEBOOK_APP_SECRET') | ||
|
||
# http://code.google.com/apis/accounts/docs/OAuth2.html#Registering | ||
GOOGLE_OAUTH2_CLIENT_ID = os.environ.get('GOOGLE_OAUTH2_CLIENT_ID') | ||
GOOGLE_OAUTH2_CLIENT_SECRET = os.environ.get('GOOGLE_OAUTH2_CLIENT_SECRET') | ||
|
||
# https://github.com/settings/applications/new | ||
GITHUB_APP_ID = os.environ.get('GITHUB_APP_ID') | ||
GITHUB_API_SECRET = os.environ.get('GITHUB_APP_SECRET') | ||
|
||
# https://trello.com/1/appKey/generate | ||
TRELLO_API_KEY = os.environ.get('TRELLO_API_KEY') | ||
TRELLO_API_SECRET = os.environ.get('TRELLO_API_SECRET') | ||
|
||
ALLOWED_HOSTS=['*'] |