Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.7'
- services:
- seleniumhub:
- image: selenium/hub
- container_name: hubcontainer
- networks:
- ynetwork:
- ipv4_address: 172.21.0.2
- ports:
- - "4444:4444"
- privileged: true
- nodechrome:
- image: selenium/node-chrome-debug
- container_name: chromecontainer
- volumes:
- - /dev/shm:/dev/shm
- depends_on:
- - seleniumhub
- environment:
- - HUB_HOST=seleniumhub
- - HUB_PORT=4444
- - NODE_MAX_INSTANCES=5
- - NODE_MAX_SESSION=5
- - START_XVFB=false
- networks:
- ynetwork:
- ipv4_address: 172.21.0.10
- Mytests:
- container_name: Myubuntutests
- depends_on:
- - seleniumhub
- - nodechrome
- networks:
- ynetwork:
- ipv4_address: 172.21.0.11
- build:
- context: .
- dockerfile: ubuntu.Dockerfile
- networks:
- ynetwork:
- name: ytestsnetwork
- driver: bridge
- ipam:
- config:
- - subnet: 172.21.0.0/16
- FROM ubuntu
- COPY /bin/Debug/ /MyTests
- ENV DEBIAN_FRONTEND=noninteractive
- ENV TZ=Asia/Tokyo
- 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
- WORKDIR "/MyTests"
- ENTRYPOINT mono /TestRunner.1.8.0/tools/testrunner.exe MyTests.dll
- Docker Compose commands used (tried):
- docker-compose up --build
- docker-compose up --build -d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement