This repository contains the automation scripts to setup a Sentry environment running in Docker. The sample will create the following components:
- Sentry Website
- Sentry Service (cron)
- Sentry worker (1)
- Redis
- Postgres DB
The scripts have been tested in the following environment:
- Ubuntu 16.04 Xenial LTS
- Provisioned with at least 2 vCPU and 4 GB Memory
- User needs to be a sudoer
On a bash terminal in your environment run the following commands to stand up the service
cd ~
git clone https://github.com/rafamunozg/sentry-sample.git
cd sentry-sample
./init/docker.sh
su -l $USER
cd sentry-sample
./init/terraform.sh
cd terraform
terraform init
terraform apply -auto-approve
If prompted, respond with yes and hit enter
- Clone this repository on a VM with Ubuntu 16.04 Xenial Xerus
git clone https://github.com/rafamunozg/sentry-sample.git
If Git is missing, follow the recommendation to install it, or simply use:
sudo apt-get install -y git
Then try to clone the repository again ... it should work this time.
- cd into the sentry-sample folder
cd sentry-sample
- Install Docker
./init/docker.sh
- login again as yourself for the group permissions to be picked up
su -l $USER
- cd into the proper folder and install Terraform
cd sentry-sample
./init/terraform.sh
- cd into the terraform folder and run the appropriate scripts
cd terraform
terraform init
terraform apply -auto-approve
-
At the end of the execution, you will receive the information needed to login to the site
- URL
- User / Password
-
Login and continue on the initial page
- Deploy these containers on ECS cluster
- Split code in nodes: Postgres, Redis should be their own nodes
- Add a couple of workers to the cluster
- Deploy a sample Flask application to see Sentry in action