)
g_dockerfile = 'Dockerfile.'
-g_run_output = False
# Init Functions
'dnsdist-master'],
help='the release to generate Docker files for: ' +
'%(choices)s')
- parser.add_argument('--run-output', action='store_true',
- help='always show output from running a container')
parser.add_argument('--test', action='store_true',
help='test the release')
parser.add_argument('--test-aarch64', action='store_true',
def run (tag, arch='x86_64'):
- if g_run_output:
- capture_run_output = False
- else:
- capture_run_output = not(g_verbose)
print('Running Docker container tagged {}...'.format(tag))
if arch == 'x86_64':
cp = subprocess.run(['docker', 'run', tag],
if args.verbose:
g_verbose = True
-if args.run_output:
- g_run_output = True
-
write_release_files(args.release)
if args.test: