forked from blueshift-brasil/hadoop-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 940 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
35
36
REPOSITORY=cybermaggedon/hadoop
VERSION=$(shell git describe | sed 's/^v//')
HADOOP_VERSION=2.8.2
SUDO=
BUILD_ARGS=--build-arg HADOOP_VERSION=${HADOOP_VERSION}
all: hadoop-${HADOOP_VERSION}.tar.gz
${SUDO} docker build ${BUILD_ARGS} -t ${REPOSITORY}:${VERSION} .
# FIXME: May not be the right mirror for you.
hadoop-${HADOOP_VERSION}.tar.gz:
wget -q -O $@ 'https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=hadoop/common/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}.tar.gz'
push:
${SUDO} docker push ${REPOSITORY}:${VERSION}
# Continuous deployment support
BRANCH=master
FILE=hadoop-version
[email protected]:trustnetworks/gaffer
tools: phony
if [ ! -d tools ]; then \
git clone [email protected]:trustnetworks/cd-tools tools; \
fi; \
(cd tools; git pull)
phony:
bump-version: tools
tools/bump-version
update-cluster-config: tools
tools/update-version-file ${BRANCH} ${VERSION} ${FILE} ${REPO}