websoft9/appmanage/api/utils/docker.py
2023-02-22 09:35:21 +08:00

12 lines
491 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import os, io, sys, platform, shutil, time, json, datetime
def create_app_directory(app_name):
#1.判断/data/apps/app_name是否已经存在如果已经存在方法结束
#2. git clone https://github.com/Websoft9/docker-library.git项目将apps复制到/data目录如果data目录没有创建
def check_app_compose(app_name):
#1.判断/data/apps/app_name/.env中的port是否占用没有被占用方法结束network.py的get_start_port方法