-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (32 loc) · 901 Bytes
/
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
.PHONY: build_12
build_12:
docker build --pull -t fluentd -f $$PWD/Dockerfile_12 .
.PHONY: build_14
build_14:
docker build --pull -t fluentd -f $$PWD/Dockerfile_14 .
.PHONY: run_12
run_12: build_12
-docker stop --time=1 fluentd_sigterm
-docker rm fluentd_sigterm
rm -f $$PWD/test_data/pos-auth.log
rm -rf $$PWD/test_output
docker run --name fluentd_sigterm -d \
-v $$PWD/test_output:/fluentd/log \
-v $$PWD/test_data:/var/log \
-e FLUENTD_CONF=development.conf \
fluentd
sleep 10
docker stop --time=600 fluentd_sigterm
.PHONY: run_14
run_14: build_14
-docker stop --time=1 fluentd_sigterm
-docker rm fluentd_sigterm
rm -f $$PWD/test_data/pos-auth.log
rm -rf $$PWD/test_output
docker run --name fluentd_sigterm -d \
-v $$PWD/test_output:/fluentd/log \
-v $$PWD/test_data:/var/log \
-e FLUENTD_CONF=development.conf \
fluentd
sleep 10
docker stop --time=600 fluentd_sigterm