4 Commits

Author SHA1 Message Date
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
Benedikt Franke
9eff0c3b4d
Ease modification of base image (#1479) 2022-05-25 12:54:29 -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