-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
98 lines (72 loc) · 1.9 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Automating Scripts
python-test:
python3 ./scripts/get_requests.py
python-encodings:
python3 ./scripts/get_url_special_encodings.py
python-fetch-results:
python3 ./scripts/multithread_domains.py
python-fetch-domain-names:
pytohn3: ./scripts/get_authoritative_domain_names.py
rm-dist:
rm -rf ./scripts/dist/
generate-multiprocess-graph:
cd scripts/
python3 ./generate_graphs_multiprocess.py
cd ..
generate-request-graph:
cd scripts/
python3 ./generate_graphs_request_test.py
cd ..
stop:
docker container stop $(docker ps -q)
delete:
docker container rm $(docker ps -q)
remove:
sudo docker-compose down --remove-orphans
# Building Docker Images
## For Docker Compose, Production
build-prod:
sudo docker-compose -f docker-compose.yaml up --build
## For Docker Compose, Development
build-dev:
sudo chmod +x scripts/build-dev.sh scripts/wait-for-it.sh
./scripts/build-dev.sh
## For building only server image
build-server:
sudo chmod +x scripts/build-server.sh
./scripts/build-server.sh
## For building only client image
build-client:
sudo chmod +x scripts/build-client.sh
./scripts/build-client.sh
# Starting Docker Images
## For Docker Comppose, Production
up-prod:
sudo docker-compose -f docker-compose.yaml up
## For Docker Comppose, Development
up-dev:
sudo docker-compose -f docker-compose.dev.yaml up
## For starting only server image
up-server:
sudo chmod +x scripts/up-server.sh
./scripts/up-server.sh
## For starting only client iamge
up-client:
sudo chmod +x scripts/up-client.sh
./scripts/up-client.sh
# List all process
ps:
sudo docker-compose ps -a
# List all images
images:
sudo docker images
web-server:
sudo docker exec -it web-server-synet /bin/bash
server:
sudo docker exec -it server-synet /bin/bash
client:
sudo docker exec -it client-synet /bin/bash
cache-lru:
sudo docker exec -it cache-lru-synet /bin/bash
cache-mru:
sudo docker exec -it cache-mru-synet /bin/bash