import os, sys
import zipfile
import shutil

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

os.system(cmd)
