Example #1
0
            pprint.pprint(load(f))
    elif args["parse"]:
        plan = Plan.from_file(args["<filename>"])
        print plan
    elif args["process"]:
        assembly = Assembly.from_plan(args["<filename>"])
        print assembly

    elif args["generate"]:
        assembly = Assembly.from_plan(args["<filename>"])
        assembly.generate_files(os.path.split(args["<filename>"])[0], args["<output_folder>"])
    elif args["generun"]:
        assembly = Assembly.from_plan(args["<filename>"])
        assembly.generate_files(os.path.split(args["<filename>"])[0], args["<output_folder>"])
        os.chdir(os.path.join(args["<output_folder>"], assembly.plan.name))
        client = Client(docker_url())
        assembly.run(client)
    elif args["start"]:
        assembly = Assembly.from_plan(args["<filename>"])
        client = Client(docker_url())
        assembly.start(client)
    elif args["stop"]:
        assembly = Assembly.from_plan(args["<filename>"])
        client = Client(docker_url())
        assembly.stop(client)
    elif args["rm"]:
        assembly = Assembly.from_plan(args["<filename>"])
        client = Client(docker_url())
        assembly.rm(client)
    elif args["services"]:
        config = Config.from_path()
Example #2
0
 def setUpClass(cls):
     cls.client = Client(docker_url())
     cls.client.pull('busybox', tag='latest')
Example #3
0
 def setUpClass(cls):
     cls.client = Client(docker_url())
     cls.client.pull('ubuntu', tag='latest')
Example #4
0
 def setUpClass(cls):
     cls.client = Client(docker_url())
Example #5
0
 def setUpClass(cls):
     cls.client = Client(docker_url())
     cls.client.pull('ubuntu', tag='latest')
Example #6
0
 def setUpClass(cls):
     cls.client = Client(docker_url())