import os, sys
import zipfile
import shutil

cmd = "git clone http://192.168.0.27:8090/xuxu/yongxinda-admin \t\n"
cmd += "cd yongxinda-admin \t\n"
cmd += "yarn install\t\n"
cmd += "yarn run build\t\n"
cmd += "docker build -t yongxinda-admin .\t\n"
cmd += "docker tag yongxinda-admin 192.168.0.26:5000/yongxinda-admin\t\n"
cmd += "docker push 192.168.0.26:5000/yongxinda-admin\t\n"
cmd += "cd .. \t\n"
cmd += "rm -r -f yongxinda-admin \t\n"

os.system(cmd)
