12 Commits

Author SHA1 Message Date
Frederik Spang
2862432828
Add pgbouncer (#3884)
* Add patch for pgbouncer

* pgcat over pgbouncer

* Add patch for .env file

* Apply patches and add initial pgcat tolm file

* feat: hardcode pgcat image

* Fixes from review

* Align usernames defaults

* Remove postgres from default depends_on; Covered by pgcat by extension

* Set user and password - pgcat maybe doesnt support host auth trust

* Pool name maybe has to match, for some reason

* Use healthcheck from pgcat PR

* Reduce pool size, leave some for healthchecks and other clients running

* Start pgcat for bash scripts with postgres

* Update docker-compose.yml

* Use pgbouncer

* Revert to TRUST method
2025-08-23 20:18:13 +07:00
Kamil Monicz
2b549baee7
fix(scripts): use env to find bash interpreter (#3861) 2025-08-10 07:48:47 +07:00
Daniel Bunte
abe34d09ed
feat(install): Adds support for podman(compose) (#3673) 2025-07-22 13:58:07 +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
Burak Yigit Kaya
e1870f8ecb
ci: Remove obsolete dcr up -w from import test (#3544)
I _think_ we can get away with this but let's see what the CI thinks. If it passes, it should save us another minuter or two.
2025-01-17 12:29:23 -08:00
Burak Yigit Kaya
559e732468
breaking: Upgrade min Compose version to 2.23.2 (#3535)
In this version, there's a new `--pull` argument for `docker compose run` which we will start leveraging, especially with `sentry-admin` command.

Should come with a slight speed boost.
2025-01-16 21:45:07 +00:00
Burak Yigit Kaya
63b6c0afa7
test: Reorganize backup/restore tests for speed and reliability (#3537)
We should do the backup/restore tests _after_ we do the basic tests. This is both more efficient as we avoid an extra up/down cycle and more meaningful as we will back up and restore an actually used system.

A bit hard to measure directly as this also moves the initial `docker compose up -w` into the test suite but a random run without this patch took about 10m 49s to finish for the testing part whereas with the patch it came down to 9m 10s so **almost 2 minutes faster**!
2025-01-16 09:59:38 -08:00
Burak Yigit Kaya
ad39dabdf0
ref(geoip): Remove geoipupdate from compose (#3490)
`geoipupdate` is not used by any other service nor it is needed for any
service to run. Moreover, it is a one-shot command, causing
`docker compose up --wait` to fail when it exits with a non-zero status.
This happens when one has not yet set up their credentials and they may
choose to never do this.

This PR removes `geoipupdate` from the `docker-compose.yml` file and
moves the command directly into the geoip related script. One may run
this whenever they want to update their GeoIP database.

This PR needs an accompanying docs change.
2024-12-23 14:32:17 -08:00
Daniil Makhonia
8fd24d0231
fix(sentry-admin): Do not wait for command finish to display output (#3390)
Currently sentry-admin.sh script saves the output of the command to a separate variable.
This makes the command "freeze" if it requires any input from the user (like sentry-admin.sh restore).
The change should provide the output directly to the shell.

Also changed contributing.md as it seemed outdated and updated requirements-dev.txt with the missing `cryptography` package.

Co-authored-by: Daniil Makhonia <daniil.makhonia@booking.com>
2024-10-18 19:09:31 +00:00
Christoph Keller
65779a77a5
Update sentry-admin.sh to select its own working directory (#3184)
`sentry-admin.sh` only works when called from the working directory and not using its absolute path.

This change makes it also callable using its absolute path.
2024-07-09 12:09:01 -07:00
Hubert Deng
b5237d2a62
Port last integration tests to python (#2966)
* port custom ca cert test to python
2024-04-16 15:51:23 -07:00
Alex Zaslavsky
f00e6a9ade
feat: Add sentry-admin.sh tool (#2594) 2023-11-21 20:30:44 +00:00