Ejemplo n.º 1
0
def jocker_run(o):
    execute(
        o.get('--varsfile'),
        o.get('--templatefile'),
        o.get('--outputfile'),
        o.get('--dockerconfig'),
        o.get('--dryrun'),
        o.get('--build'),
        o.get('--push'),
        o.get('--verbose')
        )
Ejemplo n.º 2
0
 def test_dryrun(self):
     output = execute(MOCK_VARS_FILE, MOCK_DOCKER_FILE, TEST_OUTPUT_FILE, dryrun=True)
     self.assertIn("git make curl", output)
     if os.path.isfile(TEST_OUTPUT_FILE):
         raise RuntimeError("test file created in dryrun...")
Ejemplo n.º 3
0
 def test_generate_dockerfile(self):
     execute(MOCK_VARS_FILE, MOCK_DOCKER_FILE, TEST_OUTPUT_FILE)
     with open(TEST_OUTPUT_FILE, "r") as f:
         self.assertIn("git make curl", f.read())
     os.remove(TEST_OUTPUT_FILE)