Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Commit

Permalink
Added support for override command directive when conductor is buildi…
Browse files Browse the repository at this point in the history
…ng image
  • Loading branch information
Daniil Trishkin committed May 3, 2018
1 parent f6f3a4d commit f406ec3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions container/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,13 @@ def _run_intermediate_build_container(engine, container_name, cur_image_id, serv
environment=dict(ANSIBLE_CONTAINER=1)
)

if service.get('build_overrides'):
for key in service['build_overrides']:
if key in ['user', 'working_dir', 'command', 'privileged']:
run_kwargs[key] = service['build_overrides'][key]

run_kwargs['environment'].update(service['build_overrides']['environment'])

if service.get('volumes'):
for volume in service['volumes']:
pieces = volume.split(':')
Expand Down

0 comments on commit f406ec3

Please sign in to comment.