diff options
| author | Victor Coutellier <victor.coutellier@gmail.com> | 2018-06-30 08:32:37 -0400 |
|---|---|---|
| committer | Victor Coutellier <victor.coutellier@gmail.com> | 2018-06-30 11:23:01 -0400 |
| commit | f53fcc7e5b250118830615a90cc1675032ffd2aa (patch) | |
| tree | e18841be0e8c44f92354a72800b9d6f944d11e0b /kolla/image | |
| parent | 430f335a8b9b0ae8878912d5b5283e63b95d3a01 (diff) | |
| download | kolla-f53fcc7e5b250118830615a90cc1675032ffd2aa.tar.gz kolla-f53fcc7e5b250118830615a90cc1675032ffd2aa.zip | |
Ability to build container against docker swarm
Add a decode=True option during call to dockerAPI in order
to build container against recent docker swarm.
Closes-Bug: #1779460
Change-Id: I48f041e7ed9dd5a5f410b4eaa081f6f013119d17
Diffstat (limited to 'kolla/image')
| -rwxr-xr-x | kolla/image/build.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py index 159fa695d..b19807291 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -569,15 +569,15 @@ class BuildTask(DockerTask): buildargs = self.update_buildargs() try: - for response in self.dc.build(path=image.path, - tag=image.canonical_name, - nocache=not self.conf.cache, - rm=True, - network_mode=self.conf.network_mode, - pull=pull, - forcerm=self.forcerm, - buildargs=buildargs): - stream = json.loads(response.decode('utf-8')) + for stream in self.dc.build(path=image.path, + tag=image.canonical_name, + nocache=not self.conf.cache, + rm=True, + decode=True, + network_mode=self.conf.network_mode, + pull=pull, + forcerm=self.forcerm, + buildargs=buildargs): if 'stream' in stream: for line in stream['stream'].split('\n'): if line: |
