-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
32 lines (25 loc) · 960 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
BASE := $(subst -, ,$(notdir ${CURDIR}))
ORG := $(word 1, ${BASE})
REPO := $(word 2, ${BASE})
IMG := quay.io/${ORG}/${REPO}
ACCUMULO_VERSION := 1.7.2
build: accumulo-${ACCUMULO_VERSION}-bin.tar.gz
docker build \
--build-arg ACCUMULO_VERSION=${ACCUMULO_VERSION} \
-t ${IMG}:latest .
accumulo-${ACCUMULO_VERSION}-bin.tar.gz:
curl -L -C - -O "http://apache.mirrors.pair.com/accumulo/${ACCUMULO_VERSION}/accumulo-${ACCUMULO_VERSION}-bin.tar.gz"
publish: build
docker push ${IMG}:latest
if [ "${TAG}" != "" -a "${TAG}" != "latest" ]; then docker tag ${IMG}:latest ${IMG}:${TAG} && docker push ${IMG}:${TAG}; fi
test: build
docker-compose up -d
docker-compose run --rm accumulo-master bash -c "set -e \
&& source /sbin/accumulo-lib.sh \
&& wait_until_accumulo_is_available accumulo zookeeper \
&& accumulo shell -p GisPwd -e 'info'"
docker-compose down
clean:
cleaner: clean
cleanest: cleaner
rm -f accumulo-${ACCUMULO_VERSION}-bin.tar.gz