diff --git a/.drone.yml b/.drone.yml index 0e00f26..35fa557 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,12 @@ steps: # 定义管道的执行步骤 - hostname - echo "********************" +# - name: "测试Python用例" +# image: python:3.10 + + - name: "测试微信推送" + # https://plugins.drone.io/plugins/wechat-2 image: clem109/drone-wechat settings: corpid: diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/ci-test.iml b/.idea/ci-test.iml new file mode 100644 index 0000000..9983c9c --- /dev/null +++ b/.idea/ci-test.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a50d150 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..abbfa8e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4d55334 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,38 @@ +FROM python:3.10 + +# image info +LABEL Project="PythonUniversal" +LABEL Author="lzwang" +LABEL Email="zhuangwang82@gmail.com" +LABEL Version="20220903" + +# setup volume +VOLUME /project + +# setup workdir +WORKDIR /project + +# setup mirrors of pip +# https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ +RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple + +# setup timezone +RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ + && date + +# setup mirrors of apt +# https://mirrors.tuna.tsinghua.edu.cn/help/debian/ +RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free" > /etc/apt/sources.list \ + && echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list \ + && echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list \ + && echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free" >> /etc/apt/sources.list + +# update apt packages +RUN apt-get update -y && apt-get upgrade -y \ + && apt-get install apt-utils -y \ + && rm -rf /var/lib/apt/lists/* + +# setup alias +RUN echo "alias ll='ls -la'" >> /root/.bashrc + +CMD ["python3"]