mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #18316 from overleaf/jpa-host-admin
[server-ce] e2e tests: add capability for reconfiguring the instance GitOrigin-RevId: 44ec800b5b37497b3122310a94f637c24ff2667a
This commit is contained in:
@@ -1,13 +1,22 @@
|
||||
all: test-e2e
|
||||
|
||||
# We are updating the docker compose config via the host-admin service.
|
||||
# The host-admin service is running inside docker and has its own file-system layout.
|
||||
# We need to have both file-system layouts agree on the path for the docker compose project.
|
||||
# Notable the container labels com.docker.compose.project.working_dir and com.docker.compose.project.config_files need to match when creating containers from the docker host (how you started things) and from host-admin (how tests reconfigure the instance).
|
||||
export PWD = $(shell pwd)
|
||||
|
||||
test-e2e:
|
||||
docker compose down -v -t 0
|
||||
docker compose -f docker-compose.yml run --rm e2e
|
||||
docker compose down -v -t 0
|
||||
docker compose up --build --no-log-prefix --exit-code-from=e2e e2e
|
||||
|
||||
test-e2e-open:
|
||||
docker compose down -v -t 0
|
||||
docker compose -f docker-compose.yml run --rm e2e-open
|
||||
docker compose down -v -t 0
|
||||
docker compose up --build --no-log-prefix --exit-code-from=e2e-open e2e-open
|
||||
|
||||
clean:
|
||||
docker compose down --volumes --timeout 0
|
||||
|
||||
prefetch:
|
||||
docker compose pull e2e mongo redis
|
||||
docker compose build
|
||||
|
||||
.PHONY: test-e2e test-e2e-open
|
||||
|
||||
Reference in New Issue
Block a user