-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
45 lines (30 loc) · 1.1 KB
/
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
37
38
39
40
41
42
43
44
45
FROM maven:3.5.4-jdk-8 AS stage-atlas
ENV MAVEN_OPTS "-Xms2g -Xmx2g"
ENV ATLAS_REV "21b15842fd74bc91910b2d8901dbea57769065d0"
RUN git clone http://github.com/apache/atlas.git \
&& cd atlas \
&& git reset --hard $ATLAS_REV \
&& mvn clean -DskipTests package -Pdist,embedded-hbase-solr \
&& mv distro/target/apache-atlas-*-bin.tar.gz /apache-atlas.tar.gz
FROM centos:7
COPY --from=stage-atlas /apache-atlas.tar.gz /apache-atlas.tar.gz
RUN yum update -y \
&& yum install -y python python36 java-1.8.0-openjdk java-1.8.0-openjdk-devel net-tools \
&& yum clean all
RUN groupadd hadoop && \
useradd -m -d /opt/atlas -g hadoop atlas
RUN pip3 install amundsenatlastypes==1.1.0
USER atlas
RUN cd /opt \
&& tar xzf /apache-atlas.tar.gz -C /opt/atlas --strip-components=1
COPY model /tmp/model
COPY resources/atlas-setup.sh /tmp
COPY resources/credentials /tmp
COPY resources/init_amundsen.py /tmp
COPY resources/atlas-application.properties /opt/atlas/conf/
USER root
ADD resources/entrypoint.sh /entrypoint.sh
RUN rm -rf /apache-atlas.tar.gz
USER atlas
ENTRYPOINT ["sh", "-c", "/entrypoint.sh"]
EXPOSE 21000