make -t work and implement many tranforms

This commit is contained in:
alsadi 2019-03-05 00:04:53 +02:00
parent 49ae85776c
commit b99e7333f4

View File

@ -189,10 +189,12 @@ def down(project_name, dirname, pods, containers):
def container_to_args(cnt, dirname): def container_to_args(cnt, dirname):
pod=cnt.get('pod') or '' pod=cnt.get('pod') or ''
args=[ args=[
'podman', 'run', '--pod={}'.format(pod), 'podman', 'run',
'--name={}'.format(cnt.get('name')), '--name={}'.format(cnt.get('name')),
'-d'
] ]
args.extend(['-d']) if pod:
args.append('--pod={}'.format(pod))
if cnt.get('read_only'): if cnt.get('read_only'):
args.append('--read-only') args.append('--read-only')
for i in cnt.get('labels', []): for i in cnt.get('labels', []):