mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
Update docker.py
This commit is contained in:
parent
2f7b7e62e1
commit
fe6a55a4ac
@ -8,6 +8,18 @@ import dotenv
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from api.utils.common_log import myLogger
|
from api.utils.common_log import myLogger
|
||||||
|
|
||||||
|
def pull_images(app_name):
|
||||||
|
|
||||||
|
# 备用方法
|
||||||
|
# 为了防止安装前,用户服务器已经有了镜像。导致安装时镜像不重新拉取,镜像是老的(根据docker-compose.yml 和 .env 获取)
|
||||||
|
myLogger.info_logger("Pull images complete ...")
|
||||||
|
|
||||||
|
def delete_images(app_id):
|
||||||
|
|
||||||
|
# 备用方法
|
||||||
|
# 卸载APP时同时删除dockercompose里面对应的镜像(根据docker-compose.yml 和 .env 获取)
|
||||||
|
myLogger.info_logger("Delete images complete ...")
|
||||||
|
|
||||||
def get_process_perc(app_name, real_name):
|
def get_process_perc(app_name, real_name):
|
||||||
|
|
||||||
process_now = "step1"
|
process_now = "step1"
|
||||||
|
Loading…
Reference in New Issue
Block a user