automation: Always pull base image when building a container
PATCH 1/1 automation: Always pull base image when building a container
Ask docker to check if there's an update of the base image to avoid using an old container cached locally.
Signed-off-by Anthony PERARD <[email protected]>
--- automation/build/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
automation/build/Makefile +1 -1
@@ -16,7 +16,7 @@ help: include yocto/yocto.inc %: %.dockerfile ## Builds containers - $(DOCKER_CMD) build -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D) + $(DOCKER_CMD) build --pull -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D) @if [ ! -z $${PUSH+x} ]; then \ $(DOCKER_CMD) push $(REGISTRY)/$(@D):$(@F); \ fi
Signature · 1 line
Anthony PERARD
Quoted 4 lines · Anthony PERARD
Ask docker to check if there's an update of the base image to avoid using an old container cached locally.
Signed-off-by Anthony PERARD <[email protected]>
Acked-by Andrew Cooper <[email protected]>
I've lost count of how many times I've fallen over this.
Quoted 4 lines · Anthony PERARD
Ask docker to check if there's an update of the base image to avoid using an old container cached locally.
Signed-off-by Anthony PERARD <[email protected]>
Reviewed-by Stefano Stabellini <[email protected]>
Quoted 20 lines
--- automation/build/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)automation/build/Makefile +1
-1@@ -16,7 +16,7 @@ help: include yocto/yocto.inc %: %.dockerfile ## Builds containers - $(DOCKER_CMD) build -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D) + $(DOCKER_CMD) build --pull -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D) @if [ ! -z $${PUSH+x} ]; then \ $(DOCKER_CMD) push $(REGISTRY)/$(@D):$(@F); \ fiSignature · 1 line
Anthony PERARD