forked from geodocker/geodocker-accumulo-geomesa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 1.32 KB
/
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
37
38
39
40
41
IMG := quay.io/ccri/accumulo-geomesa-m3.2xlarge
GEOMESA_VERSION := 1.2.6
DIST_TARBALL := tarballs/geomesa-dist-${GEOMESA_VERSION}-bin.tar.gz
TOOL_TARBALL := geomesa-tools-${GEOMESA_VERSION}-bin.tar.gz
RUNTIME := geomesa-accumulo-distributed-runtime-${GEOMESA_VERSION}.jar
build: ${RUNTIME} ${TOOL_TARBALL}
docker build \
--build-arg GEOMESA_VERSION=${GEOMESA_VERSION} \
-t ${IMG}:latest .
${DIST_TARBALL}:
(cd tarballs ; curl -L -C - -O "https://repo.locationtech.org/content/repositories/geomesa-releases/org/locationtech/geomesa/geomesa-dist/${GEOMESA_VERSION}/geomesa-dist-${GEOMESA_VERSION}-bin.tar.gz")
${TOOL_TARBALL}: ${DIST_TARBALL}
tar zxvf $<
cp geomesa-${GEOMESA_VERSION}/dist/tools/${TOOL_TARBALL} .
${RUNTIME}: ${TOOL_TARBALL}
cp geomesa-${GEOMESA_VERSION}/dist/accumulo/${RUNTIME} .
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 shell -p GisPwd -e 'info'"
docker-compose down
clean:
rm -rf geomesa-${GEOMESA_VERSION}/
cleaner: clean
rm -f ${RUNTIME} ${TOOL_TARBALL}
cleanest: cleaner
rm -f ${DIST_TARBALL}