mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
* Revert "fix(vroom): Explicitly set PROFILES_DIR for upcoming change (#3759)"
This reverts commit e07445d6be41793165316a3e077ebec343740530.
It also very importantly changes where we mount the profiles volume which fixes the issue. Our theory is as follows:
1. Vroom Dockerfile had a line doing `mkdirp /var/lib/sentry-profiles` at image build time. This makes the directory owned by `root`
2. When we mount over that directory, and change permissions we can store the permissions changes _in_ the directory but not the directory itself
3. So when we start the vroom image with the new mount, the contents are owned by `vroom` but the main directory is still owned by `root`. This is also why [this approach](a23a4e3952) worked as the entrypoint script did this at the start of every container instance.
---------
Co-authored-by: Burak Yigit Kaya <byk@sentry.io>
46 lines
1.6 KiB
Bash
Executable File
46 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eEuo pipefail
|
|
test "${DEBUG:-}" && set -x
|
|
|
|
# Override any user-supplied umask that could cause problems, see #1222
|
|
umask 002
|
|
|
|
# Pre-pre-flight? 🤷
|
|
if [[ -n "${MSYSTEM:-}" ]]; then
|
|
echo "Seems like you are using an MSYS2-based system (such as Git Bash) which is not supported. Please use WSL instead."
|
|
exit 1
|
|
fi
|
|
|
|
source install/_logging.sh
|
|
source install/_lib.sh
|
|
|
|
# Pre-flight. No impact yet.
|
|
source install/parse-cli.sh
|
|
source install/detect-platform.sh
|
|
source install/dc-detect-version.sh
|
|
source install/error-handling.sh
|
|
# We set the trap at the top level so that we get better tracebacks.
|
|
trap_with_arg cleanup ERR INT TERM EXIT
|
|
source install/check-latest-commit.sh
|
|
source install/check-minimum-requirements.sh
|
|
|
|
# Let's go! Start impacting things.
|
|
# Upgrading clickhouse needs to come first before turning things off, since we need the old clickhouse image
|
|
# in order to determine whether or not the clickhouse version needs to be upgraded.
|
|
source install/upgrade-clickhouse.sh
|
|
source install/turn-things-off.sh
|
|
source install/create-docker-volumes.sh
|
|
source install/ensure-files-from-examples.sh
|
|
source install/check-memcached-backend.sh
|
|
source install/ensure-relay-credentials.sh
|
|
source install/generate-secret-key.sh
|
|
source install/update-docker-images.sh
|
|
source install/build-docker-images.sh
|
|
source install/bootstrap-snuba.sh
|
|
source install/upgrade-postgres.sh
|
|
source install/ensure-correct-permissions-profiles-dir.sh
|
|
source install/set-up-and-migrate-database.sh
|
|
source install/geoip.sh
|
|
source install/setup-js-sdk-assets.sh
|
|
source install/wrap-up.sh
|