mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
Force the removal of the old container when trying to start a build.
This commit is contained in:
parent
0f23ddded8
commit
4fb54b471d
2
Makefile
2
Makefile
@ -37,7 +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 rm -f 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):$(SUPERVISOR_VERSION) > /dev/null
|
||||
docker tag $(IMAGE):$(SUPERVISOR_VERSION) $(SUPERVISOR_REGISTRY)/$(IMAGE):$(SUPERVISOR_VERSION)
|
||||
|
Loading…
Reference in New Issue
Block a user