docker-compose.ci.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. version: "2"
  2. volumes:
  3. data:
  4. services:
  5. test_unit:
  6. build: .
  7. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  8. user: node
  9. command: npm run test:unit:app
  10. environment:
  11. NODE_OPTIONS: "--unhandled-rejections=strict"
  12. test_acceptance:
  13. build: .
  14. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  15. working_dir: /app
  16. environment:
  17. BCRYPT_ROUNDS: 1
  18. REDIS_HOST: redis
  19. QUEUES_REDIS_HOST: redis
  20. MONGO_URL: "mongodb://mongo/sharelatex"
  21. SHARELATEX_ALLOW_PUBLIC_ACCESS: 'true'
  22. PROJECT_HISTORY_ENABLED: 'true'
  23. ENABLED_LINKED_FILE_TYPES: 'url,project_file,project_output_file,mendeley,zotero'
  24. LINKED_URL_PROXY: 'http://localhost:6543'
  25. LOCK_MANAGER_MAX_LOCK_WAIT_TIME: 30000
  26. NODE_ENV: test
  27. NODE_OPTIONS: "--unhandled-rejections=strict"
  28. SHARELATEX_CONFIG:
  29. COOKIE_DOMAIN: .overleaf.test
  30. PUBLIC_URL: 'http://www.overleaf.test:3000'
  31. HTTP_TEST_HOST: www.overleaf.test
  32. OT_JWT_AUTH_KEY: "very secret key"
  33. extra_hosts:
  34. - 'www.overleaf.test:127.0.0.1'
  35. command: npm run test:acceptance:app
  36. user: root
  37. depends_on:
  38. - redis
  39. - mongo
  40. test_karma:
  41. build:
  42. context: .
  43. dockerfile: Dockerfile.frontend.ci
  44. args:
  45. PROJECT_NAME: $PROJECT_NAME
  46. BRANCH_NAME: $BRANCH_NAME
  47. BUILD_NUMBER: $BUILD_NUMBER
  48. working_dir: /app
  49. command: npm run test:karma:single
  50. user: node
  51. environment:
  52. NODE_OPTIONS: "--unhandled-rejections=strict"
  53. test_frontend:
  54. build: .
  55. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  56. user: node
  57. command: npm run test:frontend
  58. environment:
  59. NODE_OPTIONS: "--unhandled-rejections=strict"
  60. tar:
  61. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER-webpack
  62. volumes:
  63. - ./:/tmp/build/
  64. command: tar -cf /tmp/build/build.tar public/
  65. user: root
  66. redis:
  67. image: redis
  68. mongo:
  69. image: mongo:4.0.19