触发构建镜像

This commit is contained in:
github_bot 2022-09-19 23:26:43 +08:00
parent 2e5fcf7e3f
commit 7f3d8956b9

2
run.py
View File

@ -12,7 +12,7 @@ class DockerWechatHook:
self.exit_container() self.exit_container()
def run_vnc(self): def run_vnc(self):
# 根据VNCPASS环境变量生成vncpasswd文件 # 根据 VNCPASS 环境变量生成 vncpasswd 文件
os.makedirs('/root/.vnc', mode=755, exist_ok=True) os.makedirs('/root/.vnc', mode=755, exist_ok=True)
passwd_output = subprocess.run(['/usr/bin/vncpasswd','-f'],input=os.environ['VNCPASS'].encode(),capture_output=True) passwd_output = subprocess.run(['/usr/bin/vncpasswd','-f'],input=os.environ['VNCPASS'].encode(),capture_output=True)
with open('/root/.vnc/passwd', 'wb') as f: with open('/root/.vnc/passwd', 'wb') as f: