-
Notifications
You must be signed in to change notification settings - Fork 7.6k
/
Dockerfile_admin
36 lines (28 loc) · 983 Bytes
/
Dockerfile_admin
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 canal/osadmin:v3-amd64
#FROM canal/osadmin:v3-arm64
MAINTAINER agapple (jianghang115@gmail.com)
# install canal
COPY image/ /tmp/docker/
COPY canal.admin-*.tar.gz /home/admin/
RUN \
cp -R /tmp/docker/alidata /alidata && \
chmod +x /alidata/bin/* && \
mkdir -p /home/admin && \
mkdir -p /home/admin/bin/ && \
cp -R /tmp/docker/app_admin.sh /home/admin/app.sh && \
cp -R /tmp/docker/admin/* /home/admin/ && \
/bin/cp -f alidata/bin/lark-wait /usr/bin/lark-wait && \
mkdir -p /home/admin/canal-admin && \
tar -xzvf /home/admin/canal.admin-*.tar.gz -C /home/admin/canal-admin && \
/bin/rm -f /home/admin/canal.admin-*.tar.gz && \
mkdir -p home/admin/canal-admin/logs && \
chmod +x /home/admin/*.sh && \
chmod +x /home/admin/bin/*.sh && \
chown admin: -R /home/admin && \
yum clean all && \
true
# 8089 web
EXPOSE 8089
WORKDIR /home/admin
ENTRYPOINT [ "/alidata/bin/main.sh" ]
CMD [ "/home/admin/app.sh" ]