コード例 #1
0
ファイル: riak_up.py プロジェクト: onedata/cluster-example
    "-d",
    "--dns",
    action="store",
    default="auto",
    help='IP address of DNS or "none" - if no dns should be started or \
         "auto" - if it should be started automatically',
    dest="dns",
)

parser.add_argument(
    "-u",
    "--uid",
    action="store",
    default=common.generate_uid(),
    help="uid that will be concatenated to docker names",
    dest="uid",
)

parser.add_argument(
    "--maps", action="store", default=None, help="custom argument for `riak-admin create maps`", dest="maps"
)

parser.add_argument(
    "-n", "--nodes", type=int, action="store", default=2, help="number of riak nodes to bring up", dest="nodes"
)

args = parser.parse_args()

output = riak.up(args.image, args.dns, args.uid, args.maps, args.nodes)
print(json.dumps(output))
コード例 #2
0
ファイル: riak_up.py プロジェクト: indigo-dc/luma
    help='uid that will be concatenated to docker names',
    dest='uid')

parser.add_argument(
    '--maps',
    action='store',
    default=None,
    help='custom argument for `riak-admin create maps`',
    dest='maps')

parser.add_argument(
    '-n', '--nodes',
    type=int,
    action='store',
    default=2,
    help='number of riak nodes to bring up',
    dest='nodes')

parser.add_argument(
    '-cn', '--cluster_name',
    action='store',
    default="cluster",
    help='name of riak cluster',
    dest='cluster_name')


args = parser.parse_args()

output = riak.up(args.image, args.dns, args.uid, args.maps, args.cluster_name, args.nodes)
print(json.dumps(output))
コード例 #3
0
                    default=common.generate_uid(),
                    help='uid that will be concatenated to docker names',
                    dest='uid')

parser.add_argument('--maps',
                    action='store',
                    default=None,
                    help='custom argument for `riak-admin create maps`',
                    dest='maps')

parser.add_argument('-n',
                    '--nodes',
                    type=int,
                    action='store',
                    default=2,
                    help='number of riak nodes to bring up',
                    dest='nodes')

parser.add_argument('-cn',
                    '--cluster_name',
                    action='store',
                    default="cluster",
                    help='name of riak cluster',
                    dest='cluster_name')

args = parser.parse_args()

output = riak.up(args.image, args.dns, args.uid, args.maps, args.cluster_name,
                 args.nodes)
print(json.dumps(output))