You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-12Lines changed: 16 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,16 @@ Official bootstrap for running your own [Sentry](https://sentry.io/) with [Docke
12
12
13
13
## Setup
14
14
15
+
### Installation
16
+
17
+
To get started with all the defaults, simply clone the repo and run `./install.sh` in your local check-out. Sentry uses Python 3 by default since December 4th, 2020 and Sentry 21.1.0 is the last version to support Python 2.
18
+
19
+
During the install, a prompt will ask if you want to create a user account. If you require that the install not be blocked by the prompt, run `./install.sh --skip-user-prompt`.
20
+
21
+
Thinking of not managing this yourself? Check out the [SaaS migration docs](https://docs.sentry.io/product/sentry-basics/migration/) or [contact us](https://sentry.io/from/self-hosted) for help.
22
+
23
+
Please visit [our documentation](https://develop.sentry.dev/self-hosted/) for everything else.
24
+
15
25
### Customize DotEnv (.env) file
16
26
17
27
Environment specific configurations can be done in the `.env.custom` file. It will be located in the root directory of the Sentry installation.
@@ -20,15 +30,13 @@ By default, there exists no `.env.custom` file. In this case, you can manually a
20
30
21
31
Please keep in mind to check the `.env` file for changes, when you perform an upgrade of Sentry, so that you can adjust your `.env.custom` accordingly, if required.
22
32
23
-
### Installation
33
+
### Enhance Sentry image
24
34
25
-
To get started with all the defaults, simply clone the repo and run `./install.sh` in your local check-out. Sentry uses Python 3 by default since December 4th, 2020 and Sentry 21.1.0 is the last version to support Python 2.
35
+
To install plugins and their dependencies or make other modifications to the Sentry base image,
36
+
copy `sentry/enhance-image.example.sh` to `sentry/enhance-image.sh` and add necessary steps there.
37
+
For example, you can use `apt-get` to install dependencies and use `pip` to install plugins.
26
38
27
-
During the install, a prompt will ask if you want to create a user account. If you require that the install not be blocked by the prompt, run `./install.sh --skip-user-prompt`.
28
-
29
-
Thinking of not managing this yourself? Check out the [SaaS migration docs](https://docs.sentry.io/product/sentry-basics/migration/) or [contact us](https://sentry.io/from/self-hosted) for help.
30
-
31
-
Please visit [our documentation](https://develop.sentry.dev/self-hosted/) for everything else.
39
+
After making modifications to `sentry/enhance-image.sh`, run `./install.sh` again to apply them.
32
40
33
41
## Tips & Tricks
34
42
@@ -40,7 +48,7 @@ Sentry comes with a cleanup cron job that prunes events older than `90 days` by
40
48
41
49
If you want to install a specific release of Sentry, use the tags/releases on this repo.
42
50
43
-
We continously push the Docker image for each commit made into [Sentry](https://github.com/getsentry/sentry), and other services such as [Snuba](https://github.com/getsentry/snuba) or [Symbolicator](https://github.com/getsentry/symbolicator) to [our Docker Hub](https://hub.docker.com/u/getsentry) and tag the latest version on master as `:nightly`. This is also usually what we have on sentry.io and what the install script uses. You can use a custom Sentry image, such as a modified version that you have built on your own, or simply a specific commit hash by setting the `SENTRY_IMAGE` environment variable to that image name before running `./install.sh`:
51
+
We continuously push the Docker image for each commit made into [Sentry](https://github.com/getsentry/sentry), and other services such as [Snuba](https://github.com/getsentry/snuba) or [Symbolicator](https://github.com/getsentry/symbolicator) to [our Docker Hub](https://hub.docker.com/u/getsentry) and tag the latest version on master as `:nightly`. This is also usually what we have on sentry.io and what the install script uses. You can use a custom Sentry image, such as a modified version that you have built on your own, or simply a specific commit hash by setting the `SENTRY_IMAGE` environment variable to that image name before running `./install.sh`:
0 commit comments