-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 993 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
install:
python -m pipenv install --dev
teardown:
docker-compose down --volumes --remove-orphans --timeout 5
start: teardown
docker-compose build
docker-compose run --rm kafka-cli
bootstrap-test:
docker-compose -f tests/docker-compose.test.yaml down --volumes --remove-orphans --timeout 5 > /dev/null
docker-compose -f tests/docker-compose.test.yaml pull > /dev/null
docker-compose -f tests/docker-compose.test.yaml build > /dev/null
test-without-bootstrap:
@echo
@echo
python -m pipenv run behave tests -q
@echo
@echo
test: bootstrap-test test-without-bootstrap
docker-compose -f tests/docker-compose.test.yaml down --volumes --remove-orphans --timeout 5 > /dev/null
build-and-push:
docker build --build-arg KAFKA_VERSION_ARG=$${KAFKA_VERSION:-2.6.0} \
--build-arg SCALA_VERSION_ARG=$${SCALA_VERSION:-2.12} \
-t frser/kafka-cli:$${DOCKER_TAG:-$$SCALA_VERSION-$$KAFKA_VERSION} \
./docker
docker push frser/kafka-cli:$${DOCKER_TAG:-$$SCALA_VERSION-$$KAFKA_VERSION}