docker-compose.ci.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. version: "2.3"
  5. services:
  6. test_unit:
  7. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  8. command: npm run test:unit:_run
  9. environment:
  10. NODE_ENV: test
  11. NODE_OPTIONS: "--unhandled-rejections=strict"
  12. test_acceptance:
  13. build: .
  14. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  15. environment:
  16. ELASTIC_SEARCH_DSN: es:9200
  17. MONGO_HOST: mongo
  18. POSTGRES_HOST: postgres
  19. MOCHA_GREP: ${MOCHA_GREP}
  20. NODE_ENV: test
  21. NODE_OPTIONS: "--unhandled-rejections=strict"
  22. ENABLE_PDF_CACHING: "true"
  23. PDF_CACHING_ENABLE_WORKER_POOL: "true"
  24. ALLOWED_IMAGES: quay.io/sharelatex/texlive-full:2017.1
  25. TEXLIVE_IMAGE: quay.io/sharelatex/texlive-full:2017.1
  26. TEX_LIVE_IMAGE_NAME_OVERRIDE: gcr.io/overleaf-ops
  27. TEXLIVE_IMAGE_USER: "tex"
  28. DOCKER_RUNNER: "true"
  29. COMPILES_HOST_DIR: $PWD/compiles
  30. OUTPUT_HOST_DIR: $PWD/output
  31. volumes:
  32. - ./compiles:/overleaf/services/clsi/compiles
  33. - /var/run/docker.sock:/var/run/docker.sock
  34. command: npm run test:acceptance
  35. tar:
  36. build: .
  37. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  38. volumes:
  39. - ./:/tmp/build/
  40. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  41. user: root