-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
296 lines (242 loc) · 8.78 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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
SHELL := /bin/sh
existBash = $(shell cat /etc/shells|grep -w /bin/bash|grep -v grep)
ifneq (, $(strip ${existBash}))
SHELL = /bin/bash
endif
$(info shell will use ${SHELL})
BASEDIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
docker_build_script=${BASEDIR}/scripts/docker-build.sh
docker_push_script=${BASEDIR}/scripts/docker-push.sh
docker_clean_script=${BASEDIR}/scripts/docker-clean.sh
.PHONY: default all aerospike alpine bash busybox centos elasticsearch erlang etcd filebrowser flink fluentd gcc gitlab gitlab-ce gitlab-runner gitlab-sameersbn \
golang golang-upx influxdb jenkins julia kafka kibana logstash mitmproxy mysql nats nexus3 nginx node openjdk php \
postgres pulsar pyroscope python redis registry ruby rust sonarqube swift ubuntu zookeeper
all: aerospike alpine bash busybox centos elasticsearch erlang etcd filebrowser flink fluentd gcc gitlab gitlab-ce gitlab-runner gitlab-sameersbn \
golang golang-upx influxdb jenkins julia kafka kibana logstash mitmproxy mysql nats nexus3 nginx node openjdk php \
postgres pulsar pyroscope python redis registry ruby rust sonarqube swift ubuntu zookeeper
default: clean
clean:
bash ${docker_clean_script}
clean-force:
bash ${docker_clean_script} force
aerospike: aerospike-build aerospike-push
aerospike-build:
bash ${docker_build_script} ${BASEDIR}/aerospike/latest
aerospike-push:
bash ${docker_push_script} ${BASEDIR}/aerospike/latest
alpine: alpine-build alpine-push
alpine-build:
bash ${docker_build_script} ${BASEDIR}/alpine/latest
alpine-push:
bash ${docker_push_script} ${BASEDIR}/alpine/latest
bash: bash-build bash-push
bash-build:
bash ${docker_build_script} ${BASEDIR}/bash/latest
bash-push:
bash ${docker_push_script} ${BASEDIR}/bash/latest
busybox: busybox-build busybox-push
busybox-build:
bash ${docker_build_script} ${BASEDIR}/busybox/latest
busybox-push:
bash ${docker_push_script} ${BASEDIR}/busybox/latest
centos: centos-build centos-push
centos-build:
bash ${docker_build_script} ${BASEDIR}/centos/latest
centos-push:
bash ${docker_push_script} ${BASEDIR}/centos/latest
elasticsearch: elasticsearch-build elasticsearch-push
elasticsearch-build:
bash ${docker_build_script} ${BASEDIR}/elasticsearch/latest
elasticsearch-push:
bash ${docker_push_script} ${BASEDIR}/elasticsearch/latest
erlang: erlang-build erlang-push
erlang-build:
bash ${docker_build_script} ${BASEDIR}/erlang/latest
erlang-push:
bash ${docker_push_script} ${BASEDIR}/erlang/latest
etcd: etcd-build etcd-push
etcd-build:
bash ${docker_build_script} ${BASEDIR}/etcd/latest
etcd-push:
bash ${docker_push_script} ${BASEDIR}/etcd/latest
filebrowser: filebrowser-build filebrowser-push
filebrowser-build:
bash ${docker_build_script} ${BASEDIR}/filebrowser/latest
filebrowser-push:
bash ${docker_push_script} ${BASEDIR}/filebrowser/latest
flink: flink-build flink-push
flink-build:
bash ${docker_build_script} ${BASEDIR}/flink/latest
flink-push:
bash ${docker_push_script} ${BASEDIR}/flink/latest
fluentd: fluentd-build fluentd-push
fluentd-build:
bash ${docker_build_script} ${BASEDIR}/fluentd/latest
fluentd-push:
bash ${docker_push_script} ${BASEDIR}/fluentd/latest
gcc: gcc-build gcc-push
gcc-build:
bash ${docker_build_script} ${BASEDIR}/gcc/latest
gcc-push:
bash ${docker_push_script} ${BASEDIR}/gcc/latest
gitlab: gitlab-ce gitlab-runner gitlab-sameersbn
gitlab-ce: gitlab-ce-build gitlab-ce-push
gitlab-ce-build:
bash ${docker_build_script} ${BASEDIR}/gitlab/gitlab-ce/latest
gitlab-ce-push:
bash ${docker_push_script} ${BASEDIR}/gitlab/gitlab-ce/latest
gitlab-runner: gitlab-runner-build gitlab-runner-push
gitlab-runner-build:
bash ${docker_build_script} ${BASEDIR}/gitlab/gitlab-runner/latest
gitlab-runner-push:
bash ${docker_push_script} ${BASEDIR}/gitlab/gitlab-runner/latest
gitlab-sameersbn: gitlab-sameersbn-build gitlab-sameersbn-push
gitlab-sameersbn-build:
bash ${docker_build_script} ${BASEDIR}/gitlab/gitlab-sameersbn/latest
gitlab-sameersbn-push:
bash ${docker_push_script} ${BASEDIR}/gitlab/gitlab-sameersbn/latest
golang: golang-build golang-push
golang-build:
bash ${docker_build_script} ${BASEDIR}/golang/latest
golang-push:
bash ${docker_push_script} ${BASEDIR}/golang/latest
golang-upx: golang-build-upx golang-push-upx
golang-build-upx:
bash ${docker_build_script} ${BASEDIR}/golang/latest-upx
golang-push-upx:
bash ${docker_push_script} ${BASEDIR}/golang/latest-upx
grafana: grafana-build grafana-push
grafana-build:
bash ${docker_build_script} ${BASEDIR}/grafana/latest
grafana-push:
bash ${docker_push_script} ${BASEDIR}/grafana/latest
influxdb: influxdb-build influxdb-push
influxdb-build:
bash ${docker_build_script} ${BASEDIR}/influxdb/latest
influxdb-push:
bash ${docker_push_script} ${BASEDIR}/influxdb/latest
jenkins: jenkins-build jenkins-push
jenkins-build:
bash ${docker_build_script} ${BASEDIR}/jenkins/latest
jenkins-push:
bash ${docker_push_script} ${BASEDIR}/jenkins/latest
julia: julia-build julia-push
julia-build:
bash ${docker_build_script} ${BASEDIR}/julia/latest
julia-push:
bash ${docker_push_script} ${BASEDIR}/julia/latest
kafka: kafka-build kafka-push
kafka-build:
bash ${docker_build_script} ${BASEDIR}/kafka/latest
kafka-push:
bash ${docker_push_script} ${BASEDIR}/kafka/latest
kibana: kibana-build kibana-push
kibana-build:
bash ${docker_build_script} ${BASEDIR}/kibana/latest
kibana-push:
bash ${docker_push_script} ${BASEDIR}/kibana/latest
logstash: logstash-build logstash-push
logstash-build:
bash ${docker_build_script} ${BASEDIR}/logstash/latest
logstash-push:
bash ${docker_push_script} ${BASEDIR}/logstash/latest
mitmproxy: mitmproxy-build mitmproxy-push
mitmproxy-build:
bash ${docker_build_script} ${BASEDIR}/mitmproxy/latest
mitmproxy-push:
bash ${docker_push_script} ${BASEDIR}/mitmproxy/latest
mysql: mysql-build mysql-push
mysql-build:
bash ${docker_build_script} ${BASEDIR}/mysql/latest
mysql-push:
bash ${docker_push_script} ${BASEDIR}/mysql/latest
nats: nats-build nats-push
nats-build:
bash ${docker_build_script} ${BASEDIR}/nats/latest
nats-push:
bash ${docker_push_script} ${BASEDIR}/nats/latest
nexus3: nexus3-build nexus3-push
nexus3-build:
bash ${docker_build_script} ${BASEDIR}/nexus3/latest
nexus3-push:
bash ${docker_push_script} ${BASEDIR}/nexus3/latest
nginx: nginx-build nginx-push
nginx-build:
bash ${docker_build_script} ${BASEDIR}/nginx/latest
nginx-push:
bash ${docker_push_script} ${BASEDIR}/nginx/latest
node: node-build node-push
node-build:
bash ${docker_build_script} ${BASEDIR}/node/latest
node-push:
bash ${docker_push_script} ${BASEDIR}/node/latest
openjdk: openjdk-build openjdk-push
openjdk-build:
bash ${docker_build_script} ${BASEDIR}/openjdk/latest
openjdk-push:
bash ${docker_push_script} ${BASEDIR}/openjdk/latest
php: php-build php-push
php-build:
bash ${docker_build_script} ${BASEDIR}/php/latest
php-push:
bash ${docker_push_script} ${BASEDIR}/php/latest
postgres: postgres-build postgres-push
postgres-build:
bash ${docker_build_script} ${BASEDIR}/postgres/latest
postgres-push:
bash ${docker_push_script} ${BASEDIR}/postgres/latest
pulsar: pulsar-build pulsar-push
pulsar-build:
bash ${docker_build_script} ${BASEDIR}/pulsar/latest
pulsar-push:
bash ${docker_push_script} ${BASEDIR}/pulsar/latest
pyroscope: pyroscope-build pyroscope-push
pyroscope-build:
bash ${docker_build_script} ${BASEDIR}/pyroscope/latest
pyroscope-push:
bash ${docker_push_script} ${BASEDIR}/pyroscope/latest
python: python-build python-push
python-build:
bash ${docker_build_script} ${BASEDIR}/python/latest
python-push:
bash ${docker_push_script} ${BASEDIR}/python/latest
redis: redis-build redis-push
redis-build:
bash ${docker_build_script} ${BASEDIR}/redis/latest
redis-push:
bash ${docker_push_script} ${BASEDIR}/redis/latest
registry: registry-build registry-push
registry-build:
bash ${docker_build_script} ${BASEDIR}/registry/latest
registry-push:
bash ${docker_push_script} ${BASEDIR}/registry/latest
ruby: ruby-build ruby-push
ruby-build:
bash ${docker_build_script} ${BASEDIR}/ruby/latest
ruby-push:
bash ${docker_push_script} ${BASEDIR}/ruby/latest
rust: rust-build rust-push
rust-build:
bash ${docker_build_script} ${BASEDIR}/rust/latest
rust-push:
bash ${docker_push_script} ${BASEDIR}/rust/latest
sonarqube: sonarqube-build sonarqube-push
sonarqube-build:
bash ${docker_build_script} ${BASEDIR}/sonarqube/latest
sonarqube-push:
bash ${docker_push_script} ${BASEDIR}/sonarqube/latest
swift: swift-build swift-push
swift-build:
bash ${docker_build_script} ${BASEDIR}/swift/latest
swift-push:
bash ${docker_push_script} ${BASEDIR}/swift/latest
ubuntu: ubuntu-build ubuntu-push
ubuntu-build:
bash ${docker_build_script} ${BASEDIR}/ubuntu/latest
ubuntu-push:
bash ${docker_push_script} ${BASEDIR}/ubuntu/latest
zookeeper: zookeeper-build zookeeper-push
zookeeper-build:
bash ${docker_build_script} ${BASEDIR}/zookeeper/latest
zookeeper-push:
bash ${docker_push_script} ${BASEDIR}/zookeeper/latest