-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (22 loc) · 921 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM centos:centos7.4.1708
USER root
WORKDIR /opt/
RUN ["yum", "update", "-y"]
RUN ["yum", "install", "wget", "-y"]
RUN ["yum", "install", "curl", "-y"]
RUN ["yum", "install", "java-1.8.0-openjdk", "-y"]
RUN ["wget", "http://dl.bintray.com/sbt/rpm/sbt-0.13.12.rpm"]
RUN ["yum", "install", "sbt-0.13.12.rpm", "-y"]
RUN ["yum", "install", "-y", "yum-utils", "device-mapper-persistent-data", "lvm2"]
RUN ["wget", "http://it.apache.contactlab.it/spark/spark-2.2.0/spark-2.2.0-bin-hadoop2.7.tgz"]
RUN ["tar", "xvf", "spark-2.2.0-bin-hadoop2.7.tgz" ]
RUN ["wget", "http://it.apache.contactlab.it/hadoop/common/hadoop-2.7.4/hadoop-2.7.4.tar.gz"]
RUN ["tar", "xvf", "hadoop-2.7.4.tar.gz" ]
ENV SPARK_USER="root"
ENV HADOOP_HOME="/opt/hadoop-2.7.4"
ENV HADOOP_USER_NAME="root"
ENV HADOOP_USER="root"
ENV SPARK_HOME="/opt/spark-2.2.0-bin-hadoop2.7"
ENV PATH="$PATH:$SPARK_HOME/bin:$HADOOP_HOME/bin"
WORKDIR /root
CMD ["/bin/bash"]