docker-compose.ci.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/sharelatex/sharelatex-dev-environment
  4. version: "2.3"
  5. services:
  6. test_unit:
  7. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  8. user: node
  9. command: npm run test:unit:_run
  10. environment:
  11. NODE_ENV: test
  12. test_acceptance:
  13. build: .
  14. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  15. environment:
  16. ELASTIC_SEARCH_DSN: es:9200
  17. REDIS_HOST: redis
  18. MONGO_HOST: mongo
  19. POSTGRES_HOST: postgres
  20. GCS_API_ENDPOINT: gcs:9090
  21. GCS_API_SCHEME: http
  22. GCS_PROJECT_ID: fake
  23. STORAGE_EMULATOR_HOST: http://gcs:9090/storage/v1
  24. MOCHA_GREP: ${MOCHA_GREP}
  25. NODE_ENV: test
  26. depends_on:
  27. mongo:
  28. condition: service_healthy
  29. gcs:
  30. condition: service_healthy
  31. user: node
  32. command: npm run test:acceptance:_run
  33. tar:
  34. build: .
  35. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  36. volumes:
  37. - ./:/tmp/build/
  38. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  39. user: root
  40. mongo:
  41. image: mongo:3.6
  42. gcs:
  43. build:
  44. context: test/acceptance/deps
  45. dockerfile: Dockerfile.fake-gcs