Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
One-shot dockerized sentry install
# 1. Install docker
# https://docs.docker.com/install/linux/docker-ce/centos/#install-docker-ce-1
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum-config-manager --enable docker-ce-edge
sudo yum install docker-ce -y
sudo systemctl start docker
# 2. Install Sentry from docker
# https://hub.docker.com/_/sentry/
sudo docker run -d --name sentry-redis redis
sudo docker run -d --name sentry-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=sentry postgres
sudo docker run --rm sentry config generate-secret-key
# WARN: please replace <secret-key> you got from above command
sudo docker run -it --rm -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry upgrade
sudo docker run -d -p 80:9000 --name my-sentry -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-redis:redis --link sentry-postgres:postgres sentry
sudo docker run -d --name sentry-cron -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry run cron
sudo docker run -d --name sentry-worker-1 -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry run worker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment