-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
23 lines (19 loc) · 962 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM binhnv/hive-base:1.0.3
MAINTAINER "Binh Van Nguyen<[email protected]>"
ENV SPARK_VERSION="1.6.3" \
SPARK_HOME="${MY_APP_DIR}/spark" \
SPARK_MASTER="local" \
SPARK_DRIVER_MEMORY="512m" \
SPARK_EXECUTOR_MEMORY="512m" \
SQOOP_VERSION="1.4.6" \
SQOOP_HOME="${MY_APP_DIR}/sqoop" \
FLINK_VERSION="1.1.3" \
FLINK_HOME="${MY_APP_DIR}/flink"
ENV SPARK_CONF_DIR="${SPARK_HOME}/conf" \
SPARK_BIN_URL="https://github.com/binhnv/spark-binaries/releases/download/v${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop-2.7.3.tgz" \
SQOOP_BIN_URL="http://archive.apache.org/dist/sqoop/${SQOOP_VERSION}/sqoop-${SQOOP_VERSION}.bin__hadoop-2.0.4-alpha.tar.gz" \
FLINK_BIN_URL="http://archive.apache.org/dist/flink/flink-${FLINK_VERSION}/flink-${FLINK_VERSION}-bin-hadoop27-scala_2.10.tgz"
COPY scripts/build /my_build
RUN /my_build/install.sh && rm -rf /my_build
COPY templates ${MY_TEMPLATE_DIR}
COPY scripts/init ${MY_INIT_DIR}