Exemplo n.º 1
0
    help='the path to cluster_manager repository (precompiled)',
    dest='bin_cluster_manager')

# Prepare config
args = parser.parse_args()
config = common.parse_json_config_file(args.config_path)
output = {
    'cluster_manager_nodes': [],
    'op_worker_nodes': [],
}
uid = args.uid

# Start DNS
if args.dns == 'auto':
    [dns_server], dns_output = dns.maybe_start('auto', uid)
    common.merge(output, dns_output)
else:
    dns_server = args.dns

# Start cms
cm_output = cluster_manager.up(args.image, args.bin_cluster_manager,
                               dns_server, uid, args.config_path, args.logdir)
common.merge(output, cm_output)

# Start workers
worker_output = provider_worker.up(args.image, args.bin_op_worker, dns_server,
                                   uid, args.config_path, args.logdir)
common.merge(output, worker_output)

if dns_server != 'none':
    # Make sure domain are added to the dns server
Exemplo n.º 2
0
# Prepare config
args = parser.parse_args()
dockers_config.ensure_image(args, 'image', 'worker')

config = common.parse_json_config_file(args.config_path)
output = {
    'cluster_manager_nodes': [],
    'cluster_worker_nodes': [],
}
uid = args.uid

# Start DNS
if args.dns == 'auto':
    [dns_server], dns_output = dns.maybe_start('auto', uid)
    common.merge(output, dns_output)
else:
    dns_server = args.dns

# Start cms
cm_output = cluster_manager.up(args.image, args.bin_cluster_manager,
                               dns_server, uid, args.config_path, args.logdir,
                               args.domains_name)
common.merge(output, cm_output)

# Start workers
worker_output = cluster_worker.up(args.image, args.bin_op_worker, dns_server,
                                  uid, args.config_path, args.logdir)
common.merge(output, worker_output)

if dns_server != 'none':
Exemplo n.º 3
0
config = common.parse_json_file(args.config_path)
uid = common.generate_uid()

output = {
    'docker_ids': [],
    'gr_nodes': [],
    'gr_db_nodes': [],
    'op_ccm_nodes': [],
    'op_worker_nodes': [],
    'appmock_nodes': [],
    'client_nodes': []
}

# Start DNS
[dns], dns_output = common.set_up_dns('auto', uid)
common.merge(output, dns_output)

# Start appmock instances
if 'appmock' in config:
    am_output = appmock.up(args.image, args.bin_am, dns, uid, args.config_path)
    common.merge(output, am_output)

# Start globalregistry instances
if 'globalregistry' in config:
    gr_output = globalregistry.up(args.image, args.bin_gr, args.logdir, dns,
                                  uid, args.config_path)
    common.merge(output, gr_output)

# Start oneprovider_node instances
if 'oneprovider_node' in config:
    op_output = provider.up(args.image, args.bin_op, args.logdir, dns, uid,