Parcourir la source

[packer] rework jenkins worker image (#27573)

- Use Makefile for coordinating all the independent tasks
- Pull down lots of other docker images, notably all the images for
  running Server Pro E2E tests
- Run copybara to populate it's caches
- Build Server CE and Server Pro images to populate npm caches
- Build all the monorepo images for SaaS E2E tests
- Restore the latest database backup into the CI local dev-env

GitOrigin-RevId: 821b036d1afaf2f00372dc6d0f82a51b4c3b7cc4
Jakob Ackermann il y a 1 an
Parent
commit
b01459508c
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      server-ce/test/Makefile

+ 10 - 0
server-ce/test/Makefile

@@ -72,4 +72,14 @@ build_mailtrap:
 	git clone https://github.com/dbck/docker-mailtrap.git || true && cd docker-mailtrap && git checkout v1.5.0
 	docker build -t mailtrap docker-mailtrap/build
 
+npm_install_in_docker: export COMPOSE_PROJECT_NAME=
+npm_install_in_docker:
+	$(MAKE) -C ../../ .metadata/docker-image/monorepo
+	cd ../../ && bin/run --no-deps --workdir /overleaf/server-ce/test monorepo npm --no-dry-run install
+
+format_in_docker: export COMPOSE_PROJECT_NAME=
+format_in_docker:
+	$(MAKE) -C ../../ .metadata/docker-image/monorepo
+	cd ../../ && bin/run --no-deps --workdir /overleaf/server-ce/test monorepo npm run format
+
 .PHONY: test-e2e test-e2e-open