-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
28 lines (22 loc) · 874 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
.PHONY: all
all: runtime
.PHONY: clean
clean:
docker rmi -f smizy/apache-drill:${TAG} || :
.PHONY: runtime
runtime:
docker build \
--build-arg BUILD_DATE=${BUILD_DATE} \
--build-arg VCS_REF=${VCS_REF} \
--build-arg VERSION=${VERSION} \
-t smizy/apache-drill:${TAG} .
docker images | grep apache-drill
.PHONY: test
test:
(docker network ls | grep vnet ) || docker network create vnet
zookeeper=1 drillbit=1 ./make_docker_compose_yml.sh drill > docker-compose.ci.yml.tmp
docker-compose -f docker-compose.ci.yml.tmp up -d
docker-compose ps
docker run --net vnet --volumes-from drillbit-1 smizy/apache-drill:${TAG} bash -c 'for i in $$(seq 200); do nc -z drillbit-1.vnet 8047 && echo test starting && break; echo -n .; sleep 1; [ $$i -ge 200 ] && echo timeout && exit 124 ; done'
bats test/test_*.bats
docker-compose -f docker-compose.ci.yml.tmp stop