Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Paste
P177
run-sentry-upgrade
Active
Public
Actions
Authored by
dereckson
on Mar 1 2016, 22:38.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F24535: run-sentry-upgrade
Mar 1 2016, 22:38
2016-03-01 22:38:01 (UTC+0)
Subscribers
None
#!/bin/sh
# -------------------------------------------------------------
# Sentry - initialize or upgrade operation
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 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)
# Docker volume (/data/sentry/files)
# -------------------------------------------------------------
# -------------------------------------------------------------
# Container properties
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INSTANCE
=
sentry
# -------------------------------------------------------------
# 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
`
# -------------------------------------------------------------
# Create local data directory
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
STORAGE
=
/data/sentry/files
mkdir -p
$STORAGE
chcon -Rt svirt_sandbox_file_t
$STORAGE
# -------------------------------------------------------------
# Run container
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
docker run -it --rm -v
$STORAGE
:/var/lib/sentry/files
\
-e
SENTRY_SECRET_KEY
=
$SENTRY_SECRET_KEY
\
--link sentry-redis:redis --link
$PGSQL_INSTANCE
:postgres
\
sentry upgrade
Event Timeline
dereckson
edited the content of this paste.
(Show Details)
Mar 1 2016, 22:38
2016-03-01 22:38:01 (UTC+0)
dereckson
changed the title of this paste from untitled to
run-sentry-upgrade
.
dereckson
mentioned this in
T684: Install an error reporting server
.
Mar 1 2016, 22:41
2016-03-01 22:41:33 (UTC+0)
Log In to Comment