Merge pull request #6224 from overleaf/jpa-cache-install-deps

[misc] add docker image caching for install_deps, pre-fetch node image

GitOrigin-RevId: b52e52351c62b780538e0668b99fc1c28723addc
This commit is contained in:
Jakob Ackermann 2022-01-05 10:58:48 +00:00 committed by Copybot
parent b1eac3abde
commit 729cbf3fce
20 changed files with 56 additions and 17 deletions

View file

@ -6,4 +6,4 @@ access-token-encryptor
--is-library=True
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -6,4 +6,4 @@ logger
--is-library=True
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -6,4 +6,4 @@ metrics
--is-library=True
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -6,4 +6,4 @@ o-error
--is-library=True
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -6,4 +6,4 @@ object-persistor
--is-library=True
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -6,4 +6,4 @@ redis-wrapper
--is-library=True
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -6,4 +6,4 @@ settings
--is-library=True
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -5,4 +5,4 @@ chat
--env-pass-through=
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -84,8 +84,21 @@ ifneq (,$(wildcard test/acceptance/js/scripts/pre-run))
endif
build:
docker pull gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
|| docker pull gcr.io/overleaf-ops/$(PROJECT_NAME):main-deps \
|| echo 'nothing cached'
docker build \
--pull \
--tag gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):main-deps \
--target base \
--file Dockerfile \
.
docker build --pull --tag ci/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER) \
--tag gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER) \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
.
tar:

View file

@ -7,4 +7,4 @@ clsi
--has-custom-cloudbuild=True
--node-version=14.18.1
--public-repo=True
--script-version=3.11.0
--script-version=3.13.0

View file

@ -5,4 +5,4 @@ contacts
--env-pass-through=
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -5,4 +5,4 @@ docstore
--env-pass-through=
--node-version=14.18.1
--public-repo=True
--script-version=3.11.0
--script-version=3.13.0

View file

@ -5,4 +5,4 @@ document-updater
--env-pass-through=
--node-version=14.18.1
--public-repo=True
--script-version=3.11.0
--script-version=3.13.0

View file

@ -84,8 +84,21 @@ ifneq (,$(wildcard test/acceptance/js/scripts/pre-run))
endif
build:
docker pull gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
|| docker pull gcr.io/overleaf-ops/$(PROJECT_NAME):main-deps \
|| echo 'nothing cached'
docker build \
--pull \
--tag gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):main-deps \
--target base \
--file Dockerfile \
.
docker build --pull --tag ci/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER) \
--tag gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER) \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
.
tar:

View file

@ -6,4 +6,4 @@ filestore
--env-pass-through=
--node-version=14.18.1
--public-repo=True
--script-version=3.11.0
--script-version=3.13.0

View file

@ -5,4 +5,4 @@ notifications
--env-pass-through=
--node-version=14.18.1
--public-repo=True
--script-version=3.11.0
--script-version=3.13.0

View file

@ -5,4 +5,4 @@ real-time
--env-pass-through=
--node-version=14.18.1
--public-repo=True
--script-version=3.11.0
--script-version=3.13.0

View file

@ -84,8 +84,21 @@ ifneq (,$(wildcard test/acceptance/js/scripts/pre-run))
endif
build:
docker pull gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
|| docker pull gcr.io/overleaf-ops/$(PROJECT_NAME):main-deps \
|| echo 'nothing cached'
docker build \
--pull \
--tag gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):main-deps \
--target base \
--file Dockerfile \
.
docker build --pull --tag ci/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER) \
--tag gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER) \
--cache-from gcr.io/overleaf-ops/$(PROJECT_NAME):$(BRANCH_NAME)-deps \
.
tar:

View file

@ -6,4 +6,4 @@ spelling
--env-pass-through=
--node-version=14.18.1
--public-repo=False
--script-version=3.11.0
--script-version=3.13.0

View file

@ -5,4 +5,4 @@ track-changes
--env-pass-through=
--node-version=14.18.1
--public-repo=True
--script-version=3.11.0
--script-version=3.13.0