Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. all: test-e2e
  2. # We are updating the docker compose config via the host-admin service.
  3. # The host-admin service is running inside docker and has its own file-system layout.
  4. # We need to have both file-system layouts agree on the path for the docker compose project.
  5. # 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).
  6. export PWD = $(shell pwd)
  7. export TEX_LIVE_DOCKER_IMAGE ?= quay.io/sharelatex/texlive-full:2023.1
  8. export ALL_TEX_LIVE_DOCKER_IMAGES ?= quay.io/sharelatex/texlive-full:2023.1,quay.io/sharelatex/texlive-full:2022.1
  9. export IMAGE_TAG_PRO ?= quay.io/sharelatex/sharelatex-pro:latest
  10. test-e2e:
  11. docker compose up --build --no-log-prefix --exit-code-from=e2e e2e
  12. test-e2e-open:
  13. docker compose up --build --no-log-prefix --exit-code-from=e2e-open e2e-open
  14. clean:
  15. docker compose down --volumes --timeout 0
  16. prefetch:
  17. docker compose pull e2e mongo redis
  18. docker compose build
  19. echo -n "$$ALL_TEX_LIVE_DOCKER_IMAGES" | xargs -d, -I% \
  20. sh -exc 'tag=%; re_tag=quay.io/sharelatex/$${tag#*/}; docker pull $$tag; docker tag $$tag $$re_tag'
  21. docker pull $(IMAGE_TAG_PRO:latest=4.2)
  22. docker pull $(IMAGE_TAG_PRO:latest=5.0.1-RC1)
  23. docker pull $(IMAGE_TAG_PRO:latest=5.0)
  24. .PHONY: test-e2e test-e2e-open