From 72d69c31aa65829e45532058990bc3e3aeaba7f9 Mon Sep 17 00:00:00 2001 From: Stephen Cefali Date: Mon, 12 Apr 2021 11:44:51 -0700 Subject: [PATCH] docs: explain changing version on Linux --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 1d618be3a20..53f99bd4b93 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,24 @@ SENTRY_IMAGE=getsentry/sentry:83b1380 ./install.sh Note that this may not work for all commit SHAs as this repository evolves with Sentry and its satellite projects. It is highly recommended to check out a version of this repository that is close to the timestamp of the Sentry commit you are installing. +### Using Linux + +If you are using Linux and you need to use `sudo` when running `./install.sh`, modifying the version of Sentry is slightly different. First, run the following: +```shell +sudo visudo +``` +Then add the following line: +```shell +Defaults env_keep += "SENTRY_IMAGE" +``` +Save the file then in your terminal run the following + +```shell +export SENTRY_IMAGE=us.gcr.io/sentryio/sentry:83b1380 +sudo ./install.sh +``` +Where you replace `83b1380` with the sha you want to use. + ## Event Retention Sentry comes with a cleanup cron job that prunes events older than `90 days` by default. If you want to change that, you can change the `SENTRY_EVENT_RETENTION_DAYS` environment variable in `.env` or simply override it in your environment. If you do not want the cleanup cron, you can remove the `sentry-cleanup` service from the `docker-compose.yml`file.