-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
165 lines (109 loc) · 4.49 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
DC_START_CMD := up -d
DC_STOP_CMD := stop
DC_DOWN_CMD := down
# start services
#
start-nifi:
docker compose -f services.yml $(DC_START_CMD) nifi nifi-nginx
start-elastic:
docker compose -f services.yml $(DC_START_CMD) elasticsearch-1 elasticsearch-2 kibana
start-elastic-cluster:
docker compose -f services.yml $(DC_START_CMD) elasticsearch-1 elasticsearch-2
start-elastic-1:
docker compose -f services.yml $(DC_START_CMD) elasticsearch-1
start-elastic-2:
docker compose -f services.yml $(DC_START_CMD) elasticsearch-2
start-elastic-3:
docker compose -f services.yml $(DC_START_CMD) elasticsearch-3
start-metricbeat-1:
docker compose -f services.yml $(DC_START_CMD) metricbeat-1
start-metricbeat-2:
docker compose -f services.yml $(DC_START_CMD) metricbeat-2
start-filebeat-1:
docker compose -f services.yml $(DC_START_CMD) filebeat-1
start-filebeat-2:
docker compose -f services.yml $(DC_START_CMD) filebeat-2
start-filebeat-3:
docker compose -f services.yml $(DC_START_CMD) filebeat-3
start-kibana:
docker compose -f services.yml $(DC_START_CMD) kibana
start-tika:
docker compose -f services.yml $(DC_START_CMD) tika-service
start-samples:
docker compose -f services.yml $(DC_START_CMD) samples-db
start-jupyter:
docker compose -f services.yml $(DC_START_CMD) jupyter-hub
start-medcat-service:
docker compose -f services.yml $(DC_START_CMD) nlp-medcat-service-production
start-medcat-trainer:
docker compose -f services.yml $(DC_START_CMD) medcat-trainer-ui medcat-trainer-nginx
start-nlp-medcat:
docker compose -f services.yml $(DC_START_CMD) nlp-medcat-service-production medcat-trainer-ui medcat-trainer-nginx
start-nlp-gate:
docker compose -f services.yml $(DC_START_CMD) nlp-gate-drugapp
start-production-db:
docker compose -f services.yml ${DC_START_CMD} cogstack-databank-db
start-ocr-services:
docker compose -f services.yml ${DC_START_CMD} ocr-service-1 ocr-service-2
start-git-ea:
docker compose -f services.yml ${DC_START_CMD} gitea
start-data-infra: start-nifi start-elastic start-tika start-samples
start-all: start-data-infra start-jupyter start-nlp-medcat start-nlp-gate
.PHONY: start-all start-data-infra start-nifi start-elastic start-tika start-samples start-jupyter start-nlp-medcat start-nlp-gate
# stop services
#
stop-nifi:
docker compose -f services.yml $(DC_STOP_CMD) nifi nifi-nginx
stop-elastic:
docker compose -f services.yml $(DC_STOP_CMD) elasticsearch-1 elasticsearch-2 kibana
stop-elastic-cluster:
docker compose -f services.yml $(DC_STOP_CMD) elasticsearch-1 elasticsearch-2
stop-elastic-1:
docker compose -f services.yml $(DC_STOP_CMD) elasticsearch-1
stop-elastic-2:
docker compose -f services.yml $(DC_STOP_CMD) elasticsearch-2
stop-elastic-3:
docker compose -f services.yml $(DC_STOP_CMD) elasticsearch-3
stop-metricbeat-1:
docker compose -f services.yml $(DC_STOP_CMD) metricbeat-1
stop-metricbeat-2:
docker compose -f services.yml $(DC_STOP_CMD) metricbeat-2
stop-filebeat-1:
docker compose -f services.yml $(DC_STOP_CMD) filebeat-1
stop-filebeat-2:
docker compose -f services.yml $(DC_STOP_CMD) filebeat-2
stop-filebeat-3:
docker compose -f services.yml $(DC_STOP_CMD) filebeat-3
stop-kibana:
docker compose -f services.yml $(DC_STOP_CMD) kibana
stop-tika:
docker compose -f services.yml $(DC_STOP_CMD) tika-service
stop-samples:
docker compose -f services.yml $(DC_STOP_CMD) samples-db
stop-jupyter:
docker compose -f services.yml $(DC_STOP_CMD) jupyter-hub
stop-nlp-medcat:
docker compose -f services.yml $(DC_STOP_CMD) nlp-medcat-service-production medcat-trainer-ui medcat-trainer-nginx
stop-medcat-trainer:
docker compose -f services.yml $(DC_STOP_CMD) medcat-trainer-ui medcat-trainer-nginx
stop-medcat-service:
docker compose -f services.yml $(DC_STOP_CMD) nlp-medcat-service-production
stop-nlp-gate:
docker compose -f services.yml $(DC_STOP_CMD) nlp-gate-drugapp
stop-git-ea:
docker compose -f services.yml ${DC_STOP_CMD} gitea
stop-ocr-services:
docker compose -f services.yml ${DC_STOP_CMD} ocr-service-1 ocr-service-2
stop-data-infra: stop-nifi stop-elastic stop-tika stop-samples
stop-production-db:
docker compose -f services.yml $(DC_STOP_CMD) cogstack-databank-db
stop-all: stop-data-infra stop-jupyter stop-nlp-medcat stop-nlp-gate
.PHONY: stop-data-infra stop-nifi stop-elastic stop-tika stop-samples stop-jupyter stop-nlp-medcat stop-nlp-gate
# cleanup
#
down-all:
docker compose -f services.yml $(DC_DOWN_CMD)
# deletes volumes associated with containers
cleanup:
docker compose -f services.yml $(DC_DOWN_CMD) -v
.PHONY: down-all cleanup