docker-compose.ci.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/overleaf/internal/
  4. services:
  5. test_unit:
  6. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  7. volumes:
  8. - ./reports:/overleaf/services/clsi/reports
  9. - ../../tsconfig.backend.json:/overleaf/tsconfig.backend.json
  10. command: npm run test:unit:_run
  11. environment:
  12. CI:
  13. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  14. NODE_ENV: test
  15. NODE_OPTIONS: "--unhandled-rejections=strict"
  16. VITEST_NO_CACHE: true
  17. test_acceptance:
  18. build: .
  19. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  20. environment:
  21. CI:
  22. RETRIES:
  23. MONGO_HOST: mongo
  24. POSTGRES_HOST: postgres
  25. MOCHA_GREP: ${MOCHA_GREP}
  26. NODE_ENV: test
  27. NODE_OPTIONS: "--unhandled-rejections=strict"
  28. DOWNLOAD_HOST: http://clsi-nginx:8080
  29. ALLOWED_COMPILE_GROUPS: "clsi-perf simple-latex-file"
  30. ENABLE_PDF_CACHING: "true"
  31. PDF_CACHING_ENABLE_WORKER_POOL: "true"
  32. ALLOWED_IMAGES: quay.io/sharelatex/texlive-full:2025.1
  33. TEXLIVE_IMAGE: quay.io/sharelatex/texlive-full:2025.1
  34. TEX_LIVE_IMAGE_NAME_OVERRIDE: us-east1-docker.pkg.dev/overleaf-ops/ol-docker
  35. TEXLIVE_IMAGE_USER: "tex"
  36. SANDBOXED_COMPILES: "true"
  37. SANDBOXED_COMPILES_HOST_DIR_COMPILES: $PWD/compiles
  38. SANDBOXED_COMPILES_HOST_DIR_OUTPUT: $PWD/output
  39. volumes:
  40. - ./reports:/overleaf/services/clsi/reports
  41. - ./compiles:/overleaf/services/clsi/compiles
  42. - ./output:/overleaf/services/clsi/output
  43. - /var/run/docker.sock:/var/run/docker.sock
  44. depends_on:
  45. clsi-nginx:
  46. condition: service_started
  47. command: npm run test:acceptance
  48. tar:
  49. build: .
  50. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  51. volumes:
  52. - ./:/tmp/build/
  53. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  54. user: root
  55. clsi-nginx:
  56. image: nginx:1.28
  57. read_only: true
  58. tmpfs:
  59. - /tmp
  60. - /var/cache/nginx
  61. - /run
  62. volumes:
  63. - ./output:/output:ro
  64. - ./nginx.conf:/etc/nginx/conf.d/nginx.conf:ro
  65. - ./tiny.pdf:/var/clsi/tiny.pdf:ro