示例#1
0
文件: control.py 项目: kutsys/smc
def build_docker(args):
    if args.commit:
        args.tag += ('-' if args.tag else '') + args.commit[:6]
    tag = util.get_tag(args, NAME)
    build(tag, args.rebuild, args.upgrade, args.commit)
    if not args.local:
        util.gcloud_docker_push(tag)
示例#2
0
def build_docker(args):
    if args.commit:
        args.tag += ('-' if args.tag else '') + args.commit[:6]
    tag = util.get_tag(args, NAME)
    build(tag, args.rebuild, args.upgrade, args.commit)
    if not args.local:
        util.gcloud_docker_push(tag)
示例#3
0
def build_docker(args):
    for image in IMAGES:
        tag = get_tag(args, image)
        v = ['sudo', 'docker', 'build', '-t', tag]
        if args.rebuild:  # will cause a git pull to happen
            v.append("--no-cache")
        v.append('.')
        util.run(v, path=join(SCRIPT_PATH, 'images', image))
        util.gcloud_docker_push(tag)
示例#4
0
def build_docker(args):
    if args.commit:
        args.tag += ('-' if args.tag else '') + args.commit[:6]
    tag = util.get_tag(args, NAME)
    if args.rebuild_all:
        build_base(True)
    build(tag, args.rebuild, args.commit)
    if args.local:
        test_mesg(tag)
    else:
        util.gcloud_docker_push(tag)
示例#5
0
文件: control.py 项目: angelapper/smc
def build_docker(args):
    if args.commit:
        args.tag += ('-' if args.tag else '') + args.commit[:6]
    tag = util.get_tag(args, NAME)
    if args.rebuild_all:
        build_base(True)
    build(tag, args.rebuild, args.commit)
    if args.local:
        test_mesg(tag)
    else:
        util.gcloud_docker_push(tag)
示例#6
0
文件: control.py 项目: slel/smc
def build_docker(args):
    tag = get_tag(args)
    if args.rebuild and not args.full:
        rebuild_host_static()
    if args.full:
        build_full(tag, args.rebuild)
    else:
        build_host(tag)
    if args.local:
        test_mesg(tag)
    else:
        util.gcloud_docker_push(tag)
示例#7
0
def build_docker(args):
    tag = util.get_tag(args, NAME)
    build(tag, args.rebuild)
    if not args.local:
        util.gcloud_docker_push(tag)
示例#8
0
文件: control.py 项目: edgarcosta/smc
def build_docker(args):
    tag = util.get_tag(args, NAME)
    build(tag, args.rebuild)
    if not args.local:
        util.gcloud_docker_push(tag)
示例#9
0
def build_docker(args):
    tag = util.get_tag(args, NAME)
    build(tag, args.rebuild)
    if not args.local:
        for service in SERVICES:
            util.gcloud_docker_push(full_tag(tag, service))
示例#10
0
文件: control.py 项目: edgarcosta/smc
def build_docker(args):
    tag = util.get_tag(args, NAME)
    build(tag, args.rebuild)
    if not args.local:
        for service in SERVICES:
            util.gcloud_docker_push(full_tag(tag, service))