1、删除tsg-diagnose rpm包 的preinstall 2、修改unittest_self.py 为tsg_diagnose.py 3、变更tsg_diagnose 生成目录 4、增加定时删除tsg_diagnose结果的定时任务 5、新增安装CIUnitTest python 包

This commit is contained in:
fumingwei
2020-08-28 14:34:18 +08:00
parent 0a648267e2
commit 30f56b252b
6 changed files with 81 additions and 42 deletions

View File

@@ -5,10 +5,12 @@ FROM python:3.6.9-alpine3.10
ADD unittest /root/unittest
RUN sed -i s@/dl-cdn.alpinelinux.org/@/mirrors.ustc.edu.cn/@g /etc/apk/repositories \
&& apk update \
&& apk update \
&& apk add curl-dev gcc libc-dev curl gzip \
&& pip3 install pycurl \
&& pip3 install httpstat
&& pip3 install pycurl \
&& pip3 install httpstat \
&& pip3 install CIUnitTest \
&& echo '0 2 * * * /usr/local/bin/python /root/unittest/clear_file_timeout.py' > /etc/crontabs/root
WORKDIR /root/unittest