From d7abc9e8bdfd149273187bc609ca2e541bc554d2 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Fri, 18 Jul 2014 15:27:14 +0100 Subject: [PATCH] Make sure to remove the accelerated build container if it exists before trying to create a new one. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 72a1c125..6514a557 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,7 @@ else docker pull $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) endif docker tag $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) resin/supervisor-base:latest + docker rm build-supervisor-latest 2> /dev/null || true docker run --name build-supervisor-latest --volumes-from $(ACCELERATOR):ro -v `pwd`:/tmp/app resin/supervisor-base:latest bash -i -c ". /.env && cp -r /tmp/app /app && /build/builder" docker commit build-supervisor-latest $(IMAGE) > /dev/null docker rm build-supervisor-latest