-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
35 lines (30 loc) · 1.04 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
VERSION := $(shell mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
SERVICES := hercules-elastic-adapter \
hercules-elastic-sink \
hercules-gate \
hercules-graphite-adapter \
hercules-graphite-sink \
hercules-management-api \
hercules-sentry-sink \
hercules-stream-api \
hercules-stream-manager \
hercules-stream-sink \
hercules-timeline-api \
hercules-timeline-manager \
hercules-timeline-sink \
hercules-tracing-api \
hercules-tracing-sink \
hercules-tracing-sink-clickhouse \
hercules-init \
hercules-splitter \
hercules-opentelemetry-adapter
.PHONY: all build_images push_images
all: build_images push_images
build_images:
for service in $(SERVICES) ; do \
docker build --build-arg VERSION=$(VERSION) --build-arg SERVICENAME=$$service -t vstk/$$service:$(VERSION) -f Dockerfile . ; \
done
push_images:
for service in $(SERVICES) ; do \
docker push vstk/$$service:$(VERSION) ; \
done