Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F24534
run-sentry
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Mar 1 2016, 22:37
2016-03-01 22:37:36 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
run-sentry
View Options
#!/bin/sh
# -------------------------------------------------------------
# Sentry
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Author: Sébastien Santoro aka Dereckson
# Project: Nasqueron
# Created: 2016-03-01
# Description: Errors reporting server
# Image: sentry
# Services used: PostgreSQL (Nuern)
# Redis cache (dedicated)
# Celery (dedicated beat/worker)
# Docker volume (/data/sentry/files)
# -------------------------------------------------------------
# -------------------------------------------------------------
# Container properties
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INSTANCE
=
sentry
PORT
=
26080
STORAGE
=
/data/sentry/files
# -------------------------------------------------------------
# PostgreSQL parameters
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PGSQL_INSTANCE
=
nuern
#PGSQL_USER=`ssh -4 -i /root/.ssh/id_zr zr@ysul.nasqueron.org getcredentials 61 username`
#PGSQL_PASS=`ssh -4 -i /root/.ssh/id_zr zr@ysul.nasqueron.org getcredentials 61`
# -------------------------------------------------------------
# Sentry parameters
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SENTRY_SECRET_KEY
=
`
ssh -4 -i /root/.ssh/id_zr zr@ysul.nasqueron.org getcredentials
62
`
CELERY_WORKERS
=
1
# -------------------------------------------------------------
# Run the redis container
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
docker run -dt --name sentry-redis redis
# -------------------------------------------------------------
# Run the main container
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
docker run -dt -p
$PORT
:9000 -v
$STORAGE
:/var/lib/sentry/files
\
-e
SENTRY_SECRET_KEY
=
$SENTRY_SECRET_KEY
\
--link sentry-redis:redis --link
$PGSQL_INSTANCE
:postgres
\
--name
$INSTANCE
sentry
exit
0
# -------------------------------------------------------------
# Run the Celery containers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
docker run -dt --name sentry-celery-beat
\
-e
SENTRY_SECRET_KEY
=
$SENTRY_SECRET_KEY
\
--link sentry-redis:redis --link
$PGSQL_INSTANCE
:postgres
\
sentry celery beat
for
i in
`
seq
1
$CELERY_WORKERS
`
do
docker run -dt --name sentry-celery-worker
$i
\
-e
SENTRY_SECRET_KEY
=
$SENTRY_SECRET_KEY
\
--link sentry-redis:redis --link
$PGSQL_INSTANCE
:postgres
\
sentry celery worker
done
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22124
Default Alt Text
run-sentry (2 KB)
Attached To
Mode
P176 run-sentry
Attached
Detach File
Event Timeline
Log In to Comment