import os, sys
import zipfile
import shutil

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

os.system(cmd)
