28 Commits

Author SHA1 Message Date
Nikita Korolev
0730d8c8c7
add shellcheck action to lint bash scripts (#3710)
* add shellcheck action to lint bash scripts

* fix some shellcheck warnings

---------

Co-authored-by: ds <ds@local>
Co-authored-by: Burak Yigit Kaya <byk@sentry.io>
2025-06-13 08:52:47 +00:00
Dominik Jakielski
031a1f1093
Add missing lib script to sentry-admin.sh (#3693)
Sentry Admin Script always fail because of missing import of lib script.

### Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
2025-05-19 08:24:57 +00:00
Brett Higgins
979f219355
Fix unbound variable error in install script (#3601) 2025-03-06 10:46:16 +00:00
Amin Vakil
d885dd331f
Use docker-compose if version is gte docker compose (#3595)
Fixes #3587 

This PR tries to use docker-compose if its version is greater than docker compose.
2025-03-03 13:16:31 +00:00
Reinaldy Rafli
ee3cbf0f91
feat: merge .env and .env.custom file during installation (#3564)
Closes https://github.com/getsentry/self-hosted/issues/3558
2025-02-04 12:41:12 +00:00
Benedikt Franke
ec4f416c26
Reference paths relative to project root (#1800)
* Reference paths relative to the current script or project root

Before this PR:
- some scripts change the current working directory and use relative paths
- different approaches are taken to know which directory a script is running in
- paths are sometimes relative, sometimes absolute, sometimes traversing directories

After this PR:
- scripts do neither change nor care much about the current working directory
- a unified approach determines the directory of the current script
- paths are always relative to the project root

This should resolve an issue I already tried to fix with https://github.com/getsentry/self-hosted/pull/1798,
where the contents of `./sentry` were not copied
into the built container image,
thus `enhance-image.sh` did not apply.

Co-authored-by: Amin Vakil <info@aminvakil.com>
2023-02-17 09:59:48 -08:00
Chad Whitacre
0890133e5a
Handle missing example files gracefully (#1950) 2023-02-01 19:12:29 +00:00
Hubert Deng
0d3191d9ac
Enforce error reporting (#1777)
enforce error reporting
2022-10-26 18:07:57 -07:00
Ethan Smith
6b9306a17c
Add pre-commit config (#1738) 2022-10-21 13:46:35 -07:00
Hubert Deng
65fa3d4b8a
Revert "Enforce error reporting for self-hosted" (#1755)
Revert "Enforce error reporting for self-hosted (#1753)"

This reverts commit 156eef6ebb94875525b6f4906387e7b8c1027815.
2022-10-17 11:21:32 -07:00
Hubert Deng
156eef6ebb
Enforce error reporting for self-hosted (#1753) 2022-10-17 10:16:39 -07:00
Chad Whitacre
2ef54aaf88
Default to not sending data to Sentry for now (#1695) 2022-09-14 19:11:03 +00:00
Chad Whitacre
1852fe895a
Cleanup .env{,.custom} handling (#1539) 2022-06-28 13:19:46 -04:00
Chad Whitacre
7eb16f348d
Take some actions to avoid unhealthy containers (#1241) 2022-01-07 09:00:02 -05:00
Amin Vakil
6c26bce20d
Fix reset.sh docker-compose call (#1215)
Co-authored-by: Matti Paksula <matti.paksula@iki.fi>
2021-12-22 08:59:45 -05:00
Chad Whitacre
459323354e
Do more migrating to Docker Compose v2 (#1179) 2021-11-30 16:55:56 -05:00
TS3tools
26a12a03dc
Add support for custom DotEnv file (#1113)
Co-authored-by: Sebastian Krätzig <sebastian.kraetzig@4g-server.eu>
2021-11-23 22:53:34 +00:00
Burak Yigit Kaya
4c810a5daa
fix: Hide compose errors during version check (#1124)
We get `docker: 'compose' is not a docker command.` on the console when we are checking for `docker compose` availability. This PR hides these messages.
2021-10-20 13:44:35 -04:00
EricsonMacedo
78a5c3cb87
feat: Support docker compose CLI (#1116)
Check if docker compose v2, CLI, is available and get semantic version
from it, or fallback to get semantic version out of docker-compose v1
when checking minimum requirements during install.sh script

Fixes #962
2021-10-15 21:21:19 +03:00
Burak Yigit Kaya
76c33bbbe7
upgrade: use --ansi never for docker-compose (#1051)
Starting from `docker-compose` v1.28.0, the `--no-ansi` option is deprecated and a new, `--ansi never` option is introduced instead. This PR makes the deprecation warnings around this go away but bumps the minimum docker-compose version required to `1.28.0` as the older versions don't support the new option.
2021-08-05 13:06:24 +03:00
Kyle Filz
17b675c833
feat: Support custom CA roots (#1015)
Mount a certificate folder to local ca storage in containers,
and add update command to cron image's entrypoint.

Result of poking and prodding from getsentry/sentry#26851
2021-07-30 18:39:47 +03:00
Burak Yigit Kaya
60e947d4f7
fix: Fix .env path for test scripts (#928) 2021-04-22 13:02:11 -04:00
Burak Yigit Kaya
257bccc96c
fix: test.sh should use the variable $_group (#921) 2021-04-12 16:43:09 -04:00
Chad Whitacre
a0a86e400f
Finish the refactor (#908) 2021-03-30 10:23:49 -04:00
Chad Whitacre
7e7401a668
Refactor most of the rest (#903) 2021-03-30 10:21:05 -04:00
Chad Whitacre
f086157548
Clean up the refactor (#907)
- Use source appropriately (needed for config to propagate properly)
- Standardize group/endgroup line-spacing
- Clean up envvar defaults
2021-03-30 12:21:30 +03:00
Chad Whitacre
a868b09044
Factor out volume creation (#901) 2021-03-26 15:04:54 -04:00
Chad Whitacre
0ce7856117
Refactor relay config (#900) 2021-03-26 10:06:04 -04:00