36 Commits

Author SHA1 Message Date
Amin Vakil
3c060fc8d8
Check for latest commit before install.sh (#1186) 2021-12-06 15:41:13 -05:00
Chad Whitacre
c258a1e939
Rename onpremise to self-hosted (#1169) 2021-12-02 08:38:22 -05:00
Chad Whitacre
459323354e
Do more migrating to Docker Compose v2 (#1179) 2021-11-30 16:55:56 -05:00
Chad Whitacre
5495fe2ebf Revert "Rename onpremise to self-hosted"
This reverts commit 9ad05d87d371973112028882e4d2857b0a17eba2.
2021-11-24 15:07:49 -05:00
Chad Whitacre
9ad05d87d3 Rename onpremise to self-hosted
https://github.com/getsentry/self-hosted/issues/796
2021-11-24 15:06:13 -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
8606348c02
ci: Enable parallel tests again, increase timeouts (#1125) 2021-10-20 16:18:54 -04: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
7b96408734
fix(requirements): Make compose version check bw-compatible (#1068)
Refs #1062.
2021-08-18 16:43:39 -04:00
Burak Yigit Kaya
497759c1e8
ci: Test with the required minimum docker-compose (#1066)
Refs #1061, refs #1062, refs #1063.
2021-08-18 11:35:21 -04: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
Burak Yigit Kaya
e17faecd10
fix: Fix curl image to version 7.77.0 (#1049)
Turns out the latest, `7.78.0` may have issues with DNS resolution from time to time (I experienced this locally). It is also a good practice to fix it to a specific version.
2021-08-04 22:36:48 +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
Florian Kaiser
bd8fbf960d
fix(wal2json): Respect http_proxy/https_proxy/no_proxy when installing (#1026)
`http_proxy`, `https_proxy` and `no_proxy` environment variables should be forwarded to the curl container.
2021-07-07 14:10:54 +00:00
Filippo Pacifici
d24a7b3ac6
fix(install) Make wal2json copy more robust (#1024)
There is a potential conrner case where we may end up with the wal2json library in the `postgres/wal2json/VERSION/file` but not in `postgres/wal2json/wal2json.so`.

Not sure exactly how likely this could be, but thechnically it is possible that the download succeeds and `cp "../postgres/wal2json/$VERSION/$FILE_NAME" "$FILE_TO_USE"` does not. The next attempt the copy would not be attempted.

This fix ensures the copy always happens
2021-07-06 12:31:12 +03:00
fmartinou
f5411170ac
Update middlewares to latest stable versions (#1002)
This PR is a try to update most middlewares used by Sentry to latest stable versions.
[As mentioned in the forum](https://forum.sentry.io/t/middleware-version-compatibility/14353/2) I didn't update Postgresql & Clickhouse due to known issues.

I also :
- changed versions to immutable tags (MAJOR.MINOR.PATCH semver versions when possible).
- changed nginx to the Alpine variant
2021-06-25 11:55:34 +00:00
Filippo Pacifici
8dc84600c5
feat(cdc): Prepare the self hosted environment for the Change Data Capture pipeline (#938)
We will use Change Data Capture to stream WAL updates from postgres into clickhouse so that features like issue search will be able to join event data and metadata (from postgres) through Snuba.

This requires the followings:

A logical replicaiton plugin to be installed in postgres (https://github.com/getsentry/wal2json)
A service to run that streams from the replication log to Kafka (https://github.com/getsentry/cdc)
Datasets in Snuba.
This PR is preparing postgres to stream updates via the replication log.
The idea is to

download the the replication log plugin binary during install.sh
mount a volume with the binary when starting postgres
providing a new entrypoint to postgres that ensures everything is correctly configured.
There is a difference between how this is set up and how we do the same in the development environment.
In the development environment we download the library from the entrypoint itself and store it in a persistent volume, so we do not have to download it every time.
Unfortunately this does not work here as the postgres image is postgres:9.6 while it is postgres:9.6-alpine. This one does not come with either wget or curl. I don't think installing that in the entrypoint would be a good idea, so the download happens in install.sh. I actually think this way is safer so we never depend on connectivity for postgres to start properly.
2021-05-24 17:51:36 -07:00
Burak Yigit Kaya
84312dc477
fix: Fix incorrect zookeeper mount path (#952)
Fixes #951, a regression introduced with #908.
2021-05-13 14:56:48 -04: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
Burak Yigit Kaya
2ab0590924
ci(test): Separate unit tests so they don't rely on integration tests (#910) 2021-03-30 15:02:40 -04:00
Chad Whitacre
e5e8baca2e
Remove dead file (#912) 2021-03-30 20:58:15 +03:00
Chad Whitacre
8e34f6e9bc
Fix paths (#909) 2021-03-30 17:45:05 +03: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
568f9052b5
Factor out a few more things (#906) 2021-03-29 17:28:39 -04:00
Chad Whitacre
88f90e046e
Add a partial test for geoip (#902) 2021-03-26 16:57:21 -04: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
Burak Yigit Kaya
ee53f18ad0
breaking: Remove Python 2 support (#833) 2021-01-20 15:28:14 +00:00
Burak Yigit Kaya
0ac7eed028
fix: Fix Py2 warning (#813)
Removes the obsolete `echo ''` at the end, fixes detection as `python --version` outputs to `stderr` instead of `stdout` in versions prior to 3.4 or something.
2021-01-15 01:35:57 +03:00
Burak Yigit Kaya
f2f1e77622
feat: Add Python 2 deprecation warning (w/ style) (#812)
* feat: Add Python 2 deprecation warning (w/ style)

* ensure successful exit

* always succeed at the end

* try again; set +x
2021-01-14 20:04:48 +03:00
Chad Whitacre
8d6893f0bf
Source install/geoip.sh, to work in more envs (#809) 2021-01-13 11:28:00 -05:00
Chad Whitacre
a623e72e7e
Integrate with MaxMind out of the box (#766)
Integrate with MaxMind out of the box
2020-12-14 11:56:04 -05:00