import os, sys
import zipfile
import shutil

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

os.system(cmd)
