-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
28 lines (27 loc) · 1010 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
shell:
# Run database migrations
docker compose run --rm sentry upgrade --noinput
# Create sentry user
docker compose run --rm sentry createuser \
--email test \
--password test \
--superuser \
--no-input \
|| echo "=== OK, error messages are scary but they only mean the test user already exists"
# Sentry configuration, so we don't have to set it manually from the web
# interface
docker compose run --rm sentry config set system.admin-email test
docker compose run --rm sentry config set system.url-prefix "http://sentry:9000"
docker compose run --rm sentry config set auth.allow-registration false
# Do not send reports to Sentry
docker compose run --rm sentry config set beacon.anonymous true
docker compose up -d
# Run a shell to test sentry-wrapper
docker run --rm -ti \
-v `pwd`:/app -w /app \
--network sentry-wrapper_default \
python \
sh -c 'pip install -ve python_project setuptools && pip install -ve . && bash'
clean:
docker compose kill
docker compose rm -f