import os, sys
import zipfile
import shutil

cmd = "git clone http://192.168.2.95:8090/xuxu/xyun \t\n"
cmd += "cd xyun \t\n"
cmd += "yarn install\t\n"
cmd += "yarn run build\t\n"
cmd += "docker build -t nzwz-system .\t\n"
cmd += "docker tag nzwz-system 192.168.2.141:5000/nzwz-system\t\n"
cmd += "docker push 192.168.2.141:5000/nzwz-system\t\n"
cmd += "cd .. \t\n"
cmd += "rm -r -f xyun \t\n"

os.system(cmd)
