[monorepo] use content hash as docker image cache key (#29046)

* [monorepo] remove docker-repos flag from build scripts

* [monorepo] use content hash as docker image cache key

* [packer] jenkins-worker: populate build cache for all services

* [v1] adopt smarter docker caching

* [latexqc] adopt smarter docker caching

* [monorepo] refresh docker cache in Jenkins

* [packer] jenkins-worker: increase disk size

* [monorepo] run jenkins_docker_build_cache as Jenkins user for v1

* [monorepo] define MONOREPO at the top of all the Makefiles

* [monorepo] add --build-arg BUILDKIT_INLINE_CACHE=1 everywhere

GitOrigin-RevId: 8110c6e68727a52ea80f3ec71711d30e17d69499
This commit is contained in:
Jakob Ackermann
2025-10-14 14:46:45 +02:00
committed by Copybot
parent a671c2e61b
commit 79eabd511e
40 changed files with 341 additions and 160 deletions

View File

@@ -16,6 +16,15 @@ all: build-base build-community
clean:
-docker rmi --force $(OVERLEAF_BASE_TAG) $(OVERLEAF_TAG)
refresh-cache: refresh-cache-branch
refresh-cache-branch:
docker inspect $(OVERLEAF_BASE_BRANCH) > /dev/null && docker pull $(OVERLEAF_BASE_BRANCH) || true
docker inspect $(OVERLEAF_BRANCH) > /dev/null && docker pull $(OVERLEAF_BRANCH) || true
refresh-cache: refresh-cache-latest
refresh-cache-latest:
docker inspect $(OVERLEAF_BASE_LATEST) > /dev/null && docker pull $(OVERLEAF_BASE_LATEST) || true
docker inspect $(OVERLEAF_LATEST) > /dev/null && docker pull $(OVERLEAF_LATEST) || true
build-base:
cp .dockerignore $(MONOREPO_ROOT)
docker build \

View File

@@ -104,6 +104,7 @@ pipeline {
}
}
dir('copybara/public/repo/server-ce') {
sh 'make refresh-cache -j2'
retry(count: 3) {
sh 'make build-base'
}