增加自动创建logs和output目录

This commit is contained in:
panjunlan
2026-02-22 10:00:44 +08:00
parent 26678accb7
commit 019c009700
4 changed files with 22 additions and 33 deletions

View File

@@ -12,10 +12,9 @@ Vmware 虚拟机自动化程序:自动化导出虚拟机和快照信息,自
- [x] 最后删除 15 天前的 snapshot并同时记录删除的 snapshot 日志信息
- [x] 设置计划任务,每周六(或 每15 天)执行一次
- [ ] 增加排除不能删除的 snapshots 信息,用红色底填充标识
- [ ] Outlook 邮箱发送统计超过 15 天的 snapshots 信息(即要删除快照列表)
- [ ] 需要控制每台 vCenter 不可以同时删除超过 4 个快照
- [ ] 删除前后发送邮件通知
- [ ] 多线程删除
- [ ] 删除快照前/后发送邮件通知
- [ ] 多线程删除(控制每台 vCenter 不可以同时删除超过 4 个快照
- [ ] 使用数据库保存管理节点账号密码(加密)
@@ -446,7 +445,7 @@ WORKDIR /removeweeklysnapshot/
# 复制代码
COPY ./ /removeweeklysnapshot/
# 安装必要的软件和 python 库
RUN apt-get update && apt-get install procps tzdata -y && pip install -r requirements.txt && chmod +x /removeweeklysnapshot/main.py && mkdir output
RUN apt-get update && apt-get install procps tzdata -y && pip install -r requirements.txt && chmod +x /removeweeklysnapshot/main.py
# 容器内执行启动程序
CMD ["python3", "/removeweeklysnapshot/main.py"]
EOF