-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
34 lines (26 loc) · 848 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
.DEFAULT_GOAL := test
NAME=mickyg/kafka-logdriver
TAG=latest
clean:
-rm -rf kafka-logdriver.tar.gz
-rm -rf kafka-logdriver
test:
@go test
package:
@docker build -t tempo . -f Dockerfile.build
@docker create --name kafka-logdriver-release tempo
@docker cp kafka-logdriver-release:kafka-logdriver.tar.gz .
@docker rm -v kafka-logdriver-release
@docker image rm tempo
install: clean package
@tar -xvf kafka-logdriver.tar.gz
@docker plugin create ${NAME}:${TAG} kafka-logdriver
@echo "Now configure the KAFKA_BROKER with 'docker plugin set ${NAME}:${TAG} KAFKA_BROKER_ADDR=< Broker list here >'"
@echo "Once configured, run 'make enable' to enable the plugin"
enable:
@docker plugin enable ${NAME}:${TAG}
uninstall:
-docker plugin disable ${NAME}:${TAG}
@docker plugin rm ${NAME}:${TAG}
push:
@docker plugin push ${NAME}:${TAG}