Change to Rocket v0.3 env var format
This commit is contained in:
parent
bfb0784abc
commit
e7f7a58bce
1 changed files with 2 additions and 5 deletions
|
@ -180,11 +180,8 @@ class ACIImage(TarImageFormatter):
|
|||
"group": config.get('Group', '') or 'root',
|
||||
"eventHandlers": [],
|
||||
"workingDirectory": config.get('WorkingDir', '') or '/',
|
||||
# TODO(jschorr): Use the commented version once rocket has upgraded to 0.3.0.
|
||||
#"environment": [{"name": key, "value": value}
|
||||
# for (key, value) in [e.split('=') for e in config.get('Env')]],
|
||||
"environment": {key: value
|
||||
for (key, value) in [e.split('=') for e in config.get('Env')]},
|
||||
"environment": [{"name": key, "value": value}
|
||||
for (key, value) in [e.split('=') for e in config.get('Env')]],
|
||||
"isolators": ACIImage._build_isolators(config),
|
||||
"mountPoints": ACIImage._build_volumes(config),
|
||||
"ports": ACIImage._build_ports(config),
|
||||
|
|
Reference in a new issue