Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8736d42

Browse files
author
douhuatong
committedApr 17, 2018
init
1 parent a3a802a commit 8736d42

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed
 

‎Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM arm32v7/ubuntu
2+
ENV TZ=Asia/Shanghai
3+
4+
MAINTAINER yfxiaodou <yfxiaodou@163.com>
5+
6+
RUN ln -sv /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3
7+
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
8+
COPY thunder /app/
9+
COPY start.sh /app/
10+
VOLUME /app/TDDOWNLOAD
11+
RUN chmod +x /app/portal
12+
RUN chmod +x /app/portal && chmod +x /app/start.sh
13+
CMD [ "/app/start.sh" ]

‎start.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -e
3+
4+
while true; do
5+
pid=`ps -ef|grep vod_httpserver|grep -v grep|awk '{print $2}'`
6+
if [ -z "$pid" ]; then
7+
/app/portal
8+
else
9+
sleep 60
10+
fi
11+
done

‎thunder/ETMDaemon

24.3 KB
Binary file not shown.

‎thunder/EmbedThunderManager

4.16 MB
Binary file not shown.

‎thunder/portal

128 KB
Binary file not shown.

‎thunder/vod_httpserver

23.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.