# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1540373155 -7200 # Wed Oct 24 11:25:55 2018 +0200 # Node ID dd355bcdf9f0cf67cf87736597d47f48455da59f # Parent 0de493c9e6a6e9d0d4ee7ef64cf9cd947d28c32f :pencil: use variable to control if base image should be pulled diff --git a/docker_build.py b/docker_build.py --- a/docker_build.py +++ b/docker_build.py @@ -174,8 +174,9 @@ # TODO remove temp image docker_client = docker_api(base_url='unix://var/run/docker.sock') + pull = True builder = docker_client.build( - path='.', rm=True, pull=True, buildargs=buildargs, + path='.', rm=True, pull=pull, buildargs=buildargs, tag=image, dockerfile=dockerfile) # this is for python docker 1.8-1.9 # TODO add compatibility with newer python docker