-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
78 lines (45 loc) · 1.35 KB
/
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
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
77
78
SHELL := /bin/bash
# Prepare DEVELOPMENT environment
prepare-dev-env:
cp env-file-for-local.dev .env
# docker compose TASKS
up:
docker compose --profile dev up
upd:
docker compose --profile dev up -d
debug-up:
docker compose --profile debug up
debug-upd:
docker compose --profile debug up -d
down:
docker compose --profile debug down
down-v: # also removes volumes
docker compose --profile debug down -v
stop:
docker compose --profile debug stop
build:
docker compose --profile debug build
build-no-cache:
docker compose --profile debug build --no-cache --pull
logs-dev:
docker compose --profile dev logs -f
logs-debug:
docker compose --profile debug logs -f
logs-backend:
docker compose logs -f backend
logs-mongo:
docker compose logs -f mongo
ps:
docker ps -a
# COMBOS
upl: upd logs
# DATABASE
db-init: #simple scenario with 3 UEs, 3 Cells, 1 gNB
./backend/app/app/db/init_simple.sh
db-reset:
docker compose exec db psql -h localhost -U postgres -d app -c 'TRUNCATE TABLE cell, gnb, monitoring, path, points, ue RESTART IDENTITY;'
docker compose exec mongo_nef /bin/bash -c 'mongo fastapi -u $$MONGO_USER -p $$MONGO_PASSWORD --authenticationDatabase admin --eval "db.dropDatabase();"'
db-reinit: db-reset db-init
#Individual logs
logs-location:
docker compose logs -f backend 2>&1 | grep -E "(handovers|monitoringType|'ack')"