-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (28 loc) · 999 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
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM fedora:27 AS aws-jars-provider
RUN curl -fLO https://jar-download.com/cache_jars/org.apache.hadoop/hadoop-aws/2.7.3/jar_files.zip \
&& yum install -y unzip && yum clean all \
&& unzip jar_files.zip \
&& rm jar_files.zip
FROM fedora:27 AS base
RUN yum install -y \
hadoop-hdfs \
&& yum clean all
FROM base AS base-krb5
RUN yum install -y \
krb5-workstation \
krb5-libs \
krb5-auth-dialog \
&& yum clean all
FROM base AS base-aws
COPY --from=aws-jars-provider *.jar /usr/share/hadoop/common/lib/
FROM base-krb5 AS base-aws-krb5
COPY --from=aws-jars-provider *.jar /usr/share/hadoop/common/lib/
FROM base AS onbuild
ONBUILD COPY ./conf/hadoop/*.xml /etc/hadoop/
FROM base-krb5 AS krb5-onbuild
ONBUILD COPY ./conf/krb5/krb5.conf /etc/krb5.conf
FROM base-aws AS aws-onbuild
ONBUILD COPY ./conf/hadoop/*.xml /etc/hadoop/
FROM base-aws-krb5 AS aws-krb5-onbuild
ONBUILD COPY ./conf/hadoop/*.xml /etc/hadoop/
ONBUILD COPY ./conf/krb5/krb5.conf /etc/krb5.conf