forked from DTStack/Taier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (35 loc) · 1014 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
37
38
39
40
41
FROM suranagivinod/openjdk8
# 定义工作目录
ENV WORK_PATH /usr/taier
# 创建目录
# 创建对应的文件夹
ENV DB_ROOT root
ENV DB_PASSWORD 123456
ENV DB_HOST 127.0.0.1
ENV DB_PORT 3306
ENV ZK_HOST 127.0.0.1
ENV ZK_PORT 2181
WORKDIR $WORK_PATH
RUN mkdir $WORK_PATH/lib && \
mkdir $WORK_PATH/datasource-plugins && \
mkdir $WORK_PATH/worker-plugins && \
mkdir $WORK_PATH/logs && \
mkdir $WORK_PATH/bin && \
mkdir $WORK_PATH/conf && \
mkdir $WORK_PATH/run && \
mkdir $WORK_PATH/finkconf && \
mkdir $WORK_PATH/sparkconf && \
touch $WORK_PATH/run/taier.pid && \
mkdir $WORK_PATH/dist && \
touch $WORK_PATH/logs/taier.stdout && \
touch $WORK_PATH/logs/node.gc
COPY lib $WORK_PATH/lib/
COPY datasource-plugins $WORK_PATH/datasource-plugins/
COPY worker-plugins $WORK_PATH/worker-plugins/
COPY taier-ui/dist $WORK_PATH/dist/
COPY bin/ $WORK_PATH/bin/
COPY conf/ $WORK_PATH/conf/
COPY flinkconf/ $WORK_PATH/flinkconf/
COPY sparkconf/ $WORK_PATH/sparkconf/
# 修改配置文件
CMD ./bin/base.sh start