integration-test.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: '3.1'
  2. services:
  3. selenium:
  4. image: selenium/hub:3.13.0-argon
  5. chrome:
  6. image: selenium/node-chrome:3.13.0-argon
  7. volumes:
  8. - /dev/shm:/dev/shm #Mitigates the Chromium issue described at https://code.google.com/p/chromium/issues/detail?id=519952
  9. environment:
  10. - HUB_PORT_4444_TCP_ADDR=selenium
  11. - HUB_PORT_4444_TCP_PORT=4444
  12. - SCREEN_HEIGHT=1080
  13. - SCREEN_WIDTH=1600
  14. depends_on:
  15. - selenium
  16. manager-local:
  17. environment:
  18. - HTTPS=true
  19. - REACT_APP_APP_ROOT=${REACT_APP_APP_ROOT}
  20. - REACT_APP_LOGIN_ROOT=${REACT_APP_LOGIN_ROOT}
  21. - REACT_APP_CLIENT_ID=${REACT_APP_CLIENT_ID}
  22. - REACT_APP_API_ROOT=${REACT_APP_API_ROOT}
  23. - REACT_APP_ALGOLIA_APPLICATION_ID='KGUN8FAIPF'
  24. - REACT_APP_ALGOLIA_SEARCH_KEY='d4847002cd30392fe0fbd00a1da933ed'
  25. - REACT_APP_TEST_ENVIRONMENT=true
  26. build:
  27. context: .
  28. dockerfile: Dockerfile
  29. entrypoint: ["/src/scripts/start_manager.sh"]
  30. depends_on:
  31. - chrome
  32. manager-e2e:
  33. environment:
  34. - DOCKER=true
  35. - REACT_APP_APP_ROOT=${REACT_APP_APP_ROOT}
  36. - REACT_APP_API_ROOT=${REACT_APP_API_ROOT}
  37. - MANAGER_USER=${MANAGER_USER}
  38. - MANAGER_PASS=${MANAGER_PASS}
  39. - MANAGER_USER_2=${MANAGER_USER_2}
  40. - MANAGER_PASS_2=${MANAGER_PASS_2}
  41. - MANAGER_OAUTH=${MANAGER_OAUTH}
  42. - MANAGER_OAUTH_2=${MANAGER_OAUTH_2}
  43. build:
  44. context: .
  45. dockerfile: Dockerfile
  46. volumes:
  47. - ./e2e/test-results:/src/e2e/test-results
  48. entrypoint: ["./scripts/wait-for-it.sh", "-t", "500", "-s", "manager-local:3000", "--", "yarn","e2e", "--log"]
  49. depends_on:
  50. - manager-local