changeset 1:5d70248d1e01

Fix image tag in call to docker build process.
author mvdbeek
date Tue, 02 Dec 2014 19:45:07 +0100
parents 7e0392d4531c
children 5b930e77b1f3
files DockerToolFactory.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/DockerToolFactory.py	Tue Dec 02 15:14:12 2014 +0100
+++ b/DockerToolFactory.py	Tue Dec 02 19:45:07 2014 +0100
@@ -79,7 +79,7 @@
         print 'docker container exists, skipping build'
         return image_id
     print "Building Docker image, using Dockerfile:{0}".format(dockerfile)
-    build_process=docker_client.build(fileobj=open(dockerfile, 'r'), image_tag=image_id)
+    build_process=docker_client.build(fileobj=open(dockerfile, 'r'), tag=image_id)
     print "succesfully dispatched docker build process, building now"
     build_log=[line for line in build_process] #will block until image is built.
     return image_id