forked from litmuschaos/test-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
191 lines (136 loc) · 6.48 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# Makefile for building Containers for Storage Testing
#
#
# Reference Guide - https://www.gnu.org/software/make/manual/make.html
#
# Internal variables or constants.
# NOTE - These will be executed when any make target is invoked.
#
IS_DOCKER_INSTALLED := $(shell which docker >> /dev/null 2>&1; echo $$?)
help:
@echo ""
@echo "Usage:-"
@echo "\tmake build -- will build openebs test containers"
@echo "\tmake deps -- will verify build dependencies are installed"
@echo ""
_build_check_docker:
@if [ $(IS_DOCKER_INSTALLED) -eq 1 ]; \
then echo "" \
&& echo "ERROR:\tdocker is not installed. Please install it before build." \
&& echo "" \
&& exit 1; \
fi;
deps: _build_check_docker
@echo ""
@echo "INFO:\tverifying dependencies for OpenEBS ..."
_build_tests_vdbench_image:
@echo "INFO: Building container image for performing vdbench tests"
cd vdbench && docker build -t openebs/tests-vdbench .
_push_tests_vdbench_image:
@echo "INFO: Publish container (openebs/tests-vdbench)"
cd vdbench/buildscripts && ./push
vdbench: deps _build_tests_vdbench_image _push_tests_vdbench_image
_build_tests_fio_image:
@echo "INFO: Building container image for performing fio tests"
cd fio && docker build -t openebs/tests-fio .
_push_tests_fio_image:
@echo "INFO: Publish container (openebs/tests-fio)"
cd fio/buildscripts && ./push
fio: deps _build_tests_fio_image _push_tests_fio_image
_build_tests_dd_client:
@echo "INFO: Building container image for performing dd client"
cd dd-client && docker build -t openebs/tests-dd-client .
_push_tests_dd_client:
@echo "INFO: Publish container (openebs/tests-dd-client)"
cd dd-client/buildscripts && ./push
dd-client: deps _build_tests_dd_client _push_tests_dd_client
_build_tests_iometer_image:
@echo "INFO: Building container image for performing iometer tests"
cd iometer && docker build -t openebs/tests-iometer .
_push_tests_iometer_image:
@echo "INFO: Publish container (openebs/tests-iometer)"
cd iometer/buildscripts && ./push
iometer: deps _build_tests_iometer_image _push_tests_iometer_image
_build_tests_mysql_client_image:
@echo "INFO: Building container image for performing mysql tests"
cd mysql-client && docker build -t openebs/tests-mysql-client .
_push_tests_mysql_client_image:
@echo "INFO: Publish container (openebs/tests-mysql-client)"
cd mysql-client/buildscripts && ./push
mysql-client: deps _build_tests_mysql_client_image _push_tests_mysql_client_image
_build_tests_tpcc_client_image:
@echo "INFO: Building container image for performing tpcc benchmark tests"
cd tpcc-client && docker build -t openebs/tests-tpcc-client .
_push_tests_tpcc_client_image:
@echo "INFO: Publish container (openebs/tests-tpcc-client)"
cd tpcc-client/buildscripts && ./push
tpcc-client: deps _build_tests_tpcc_client_image _push_tests_tpcc_client_image
#_build_tests_custom_percona_image:
# @echo "INFO: Building container image for integrating pmm with percona"
# cd custom-percona && docker build -t openebs/tests-custom-percona .
#_push_tests_custom_percona_image:
# @echo "INFO: Publish container (openebs/tests-custom-percona)"
# cd custom-percona/buildscripts && ./push
#custom-percona: deps _build_tests_custom_percona_image _push_tests_custom_percona_image
#_build_tests_mysql_master_image:
# @echo "INFO: Building container image for mysql-master"
# cd mysql-master && docker build -t openebs/tests-mysql-master .
#_push_tests_mysql_master_image:
# @echo "INFO: Publish container (openebs/tests-mysql-master)"
# cd mysql-master/buildscripts && ./push
#mysql-master: deps _build_tests_mysql_master_image _push_tests_mysql_master_image
#_build_tests_mysql_slave_image:
# @echo "INFO: Building container image for mysql-slave"
# cd mysql-slave && docker build -t openebs/tests-mysql-slave .
#_push_tests_mysql_slave_image:
# @echo "INFO: Publish container (openebs/tests-mysql-slave)"
# cd mysql-slave/buildscripts && ./push
#mysql-slave: deps _build_tests_mysql_slave_image _push_tests_mysql_slave_image
_build_tests_mongo_client_image:
@echo "INFO: Building container image for mongo-client"
cd mongo-client && docker build -t openebs/tests-mongo-client .
_push_tests_mongo_client_image:
@echo "INFO: Publish container (openebs/tests-mongo-client)"
cd mongo-client/buildscripts && ./push
mongo-client: deps _build_tests_mongo_client_image _push_tests_mongo_client_image
_build_tests_postgres_client_image:
@echo "INFO: Building container image for postgres-client"
cd postgres-client && docker build -t openebs/tests-postgresql-client .
_push_tests_postgres_client_image:
@echo "INFO: Publish container (openebs/tests-postgresql-client)"
cd postgres-client/buildscripts && ./push
postgres-client: deps _build_tests_postgres_client_image _push_tests_postgres_client_image
_build_tests_custom_client_image:
@echo "INFO: Building container image for custom-client"
cd custom-client && docker build -t openebs/tests-custom-client .
_push_tests_custom_client_image:
@echo "INFO: Publish container (openebs/tests-custom-client)"
cd custom-client/buildscripts && ./push
custom-client: deps _build_tests_custom_client_image _push_tests_custom_client_image
_build_tests_jenkins_client_image:
@echo "INFO: Building container image for jenkins-client"
cd jenkins-client && docker build -t openebs/tests-jenkins-client .
_push_tests_jenkins_client_image:
@echo "INFO: Publish container (openebs/tests-jenkins-client)"
cd jenkins-client/buildscripts && ./push
jenkins-client: deps _build_tests_jenkins_client_image _push_tests_jenkins_client_image
_build_tests_libiscsi_image:
@echo "INFO: Building container image for libiscsi"
cd libiscsi && docker build -t openebs/tests-libiscsi .
_push_tests_libiscsi_image:
@echo "INFO: Publish container (openebs/tests-libiscsi)"
cd libiscsi/buildscripts && ./push
libiscsi: deps _build_tests_libiscsi_image _push_tests_libiscsi_image
_build_logger_image:
@echo "INFO: Building container image for logger"
cd logger && docker build -t openebs/logger .
_push_logger_image:
@echo "INFO: Publish container (openebs/logger)"
cd logger/buildscripts && ./push
logger: deps _build_logger_image _push_logger_image
build: deps vdbench fio iometer mysql-client tpcc-client mongo-client jenkins-client postgres-client custom-client libiscsi logger
# This is done to avoid conflict with a file of same name as the targets
# mentioned in this makefile
# Currently, help, deps build are not files in repo, but are likely candidates for addition. vdbench files exists
.PHONY: help deps build vdbench
.DEFAULT_GOAL := build