summaryrefslogtreecommitdiffstats
path: root/build/cache.mk
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-10-01 19:14:51 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-10-06 13:22:35 +0000
commit36b33da56ba61efd1f8550d1996ed86a809bb323 (patch)
tree18dff059888208162f8e5a2595f6b3ccf41874c5 /build/cache.mk
parent4ecd23bbb7287076db2fa704f43c387288cae648 (diff)
build/docker: Reuse tagged image for OPNFV build
During CI build loops, the workspace is freshly fetched, so '.docker' make target is built each time. Reuse existing 'opnfv.org/ubuntu-builder:14.04' tag if present, but enforce a configurable lifespan for this tag (currently 1 day), so it does not get stale. JIRA: FUEL-204 Change-Id: I8d1bd81f3e5e81068e9586c9bea9f43b3327eb38 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 638d832527012531b506ec0ba40b297c41bfda0e)
Diffstat (limited to 'build/cache.mk')
-rw-r--r--build/cache.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/cache.mk b/build/cache.mk
index f6db01797..a65f310d0 100644
--- a/build/cache.mk
+++ b/build/cache.mk
@@ -51,5 +51,5 @@ cache:
exit 1; \
fi
@docker version >/dev/null 2>&1 || (echo 'No Docker installation available'; exit 1)
- @make -C docker
+ @make -C docker get-cache all
docker/runcontext $(DOCKERIMG) $(MAKE) $(MAKEFLAGS) cached-all