-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathTaskfile.yml
76 lines (59 loc) · 2.07 KB
/
Taskfile.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3"
tasks:
bootstrap:
cmds:
- sudo -E ./bootstrap.sh
- source $HOME/.bashrc
- source $HOME/.venv/bin/activate
config:
cmds:
- python -m core.create_config
auditor-config:
cmds:
- python -m core.create_config --auditor
miner-config:
cmds:
- python -m core.create_config --miner
miner:
cmds:
- ENV=DEV uvicorn miner.server:app --reload --host 0.0.0.0 --port 7999 --env-file .1.env --log-level debug
dbdown:
cmds:
- docker compose --env-file .vali.env -f docker-compose.yml run dbmate --wait down
dbup:
cmds:
- docker compose --env-file .vali.env -f docker-compose.yml run dbmate --wait up
setup:
cmds:
- docker compose --env-file .vali.env -f docker-compose.yml -f docker-compose.dev.yml up -d --build
validator_dev:
cmds:
- docker compose --env-file .vali.env -f docker-compose.yml -f docker-compose.dev.yml up -d --build --remove-orphans
- docker compose --env-file .vali.env -f docker-compose.yml -f docker-compose.dev.yml run dbmate --wait up
- ./utils/start_validator.sh
autoupdates:
cmds:
- pm2 delete autoupdater || true
- pm2 start "python utils/run_validator_auto_update.py" --name autoupdater
validator:
cmds:
- ./utils/setup_grafana.sh
- docker compose --env-file .vali.env -f docker-compose.yml up -d --build --remove-orphans
- docker compose rm -f -v grafana
- docker compose --env-file .vali.env -f docker-compose.yml up grafana -d
- ./utils/start_validator.sh
postgres:
cmds:
- export $(cat .vali.env | grep -v '^#' | xargs) && PGPASSWORD=$POSTGRES_PASSWORD psql -U $POSTGRES_USER -d $POSTGRES_DB -h $POSTGRES_HOST
install:
cmds:
- source $HOME/.venv/bin/activate
- pip install -e .
auditor:
cmds:
- pm2 delete auditor || true
- pm2 start "python -m auditing.audit" --name auditor
auditor-autoupdates:
cmds:
- pm2 delete auditor-autoupdates || true
- pm2 start "python utils/run_auditor_autoupdate.py" --name auditor-autoupdates