Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. version: '3.7'
  2. services:
  3. seleniumhub:
  4. image: selenium/hub
  5. container_name: hubcontainer
  6. networks:
  7. ynetwork:
  8. ipv4_address: 172.21.0.2
  9. ports:
  10. - "4444:4444"
  11. privileged: true
  12.  
  13. nodechrome:
  14. image: selenium/node-chrome-debug
  15. container_name: chromecontainer
  16. volumes:
  17. - /dev/shm:/dev/shm
  18. depends_on:
  19. - seleniumhub
  20. environment:
  21. - HUB_HOST=seleniumhub
  22. - HUB_PORT=4444
  23. - NODE_MAX_INSTANCES=5
  24. - NODE_MAX_SESSION=5
  25. - START_XVFB=false
  26. networks:
  27. ynetwork:
  28. ipv4_address: 172.21.0.10
  29.  
  30. Mytests:
  31. container_name: Myubuntutests
  32. depends_on:
  33. - seleniumhub
  34. - nodechrome
  35. networks:
  36. ynetwork:
  37. ipv4_address: 172.21.0.11
  38. build:
  39. context: .
  40. dockerfile: ubuntu.Dockerfile
  41. networks:
  42. ynetwork:
  43. name: ytestsnetwork
  44. driver: bridge
  45. ipam:
  46. config:
  47. - subnet: 172.21.0.0/16
  48.  
  49. FROM ubuntu
  50. COPY /bin/Debug/ /MyTests
  51. ENV DEBIAN_FRONTEND=noninteractive
  52. ENV TZ=Asia/Tokyo
  53. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt-get update && apt-get clean && apt-get install -y wget && apt-get install -y curl && apt-get install -y nuget && apt-get install -y mono-complete && apt-get update && nuget update -self && nuget install testrunner
  54. WORKDIR "/MyTests"
  55. ENTRYPOINT mono /TestRunner.1.8.0/tools/testrunner.exe MyTests.dll
  56.  
  57. Docker Compose commands used (tried):
  58. docker-compose up --build
  59. docker-compose up --build -d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement