-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
44 lines (34 loc) · 1.22 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
FROM docker.baifendian.com/sjx/sirius_base
MAINTAINER jingxia.sun <[email protected]>
ENV SIRIUS_PATH /opt/Sirius
RUN mkdir -p /opt/Sirius
ADD . /opt/Sirius
RUN rm -rf /opt/hadoop/etc/hadoop/*
ADD ./hadoop /opt/hadoop/etc/hadoop
RUN mkdir -p /opt/bfdhadoop/tmp/data && \
mkdir /opt/bfdhadoop/dfs.namenode.dir && \
mkdir /opt/bfdhadoop/dfs.datanode.dir && \
mkdir /opt/bfdhadoop/journal && \
mkdir -p /opt/bfdhadoop/yarn_dir/local-dirs && \
mkdir -p /opt/bfdhadoop/yarn_dir/log-dirs && \
mkdir -p /opt/bfdhadoop/yarn_dir/log-aggregation && \
mkdir -p /tmp/mr_history/tmp /tmp/mr_history/done && \
cd /root && \
source /etc/profile
RUN cd $SIRIUS_PATH/package/Aries && \
rm -rf node_modules && \
npm install && \
sh build.sh
RUN mkdir -p $SIRIUS_PATH/log &&\
mkdir -p $SIRIUS_PATH/download
RUN adduser hadoop && \
adduser bre && \
adduser bae && \
adduser openstack
VOLUME ["/opt/Sirius/log"]
VOLUME ["/opt/Sirius/download"]
RUN chmod +x $SIRIUS_PATH/sbin/Aries.sh &&\
chmod +x $SIRIUS_PATH/docker-k8s/script/start_script.sh
EXPOSE 10086
#CMD /opt/Sirius/sbin/Aries.sh start >>/opt/Sirius/log/uwsgi.log
CMD sh $SIRIUS_PATH/docker-k8s/script/start_script.sh