How to xpose docker container to local network

34 views
Skip to first unread message

nuggit

unread,
Jan 24, 2020, 1:58:50 PM1/24/20
to Selenium Users

I'm looking to run some selenium tests on my local secured network. 

I'm running all of this on my laptop which is a windows machine.  I'm running a Docker linux container though.

I'm using a selenium-grid and can prove it is setup properly to run a simple test like navigate to Google and Assert on Title of page.

When I change my url to goto an internal Website (say testsite.domain.com) it appears it cannot resolve the DNS entry.  Digging thru documentation I'm a bit confused on what I'm not doing correctly.

Any direction on what I may need to do to get this to work would help.

* What version of Selenium are you using ? selenium/node-chrome-debug:latest and selenium/hub:latest

docker-compose.yml
version: '3.7'
       
services: 
    hub:
        image: selenium/hub:latest
        ports:
            - "4444:4444"
        
    chrome:
        image: selenium/node-chrome-debug:latest
        environment:
          - HUB_HOST=hub
          - HUB_PORT=4444
        ports:
          - 5900:5900
        depends_on:
          - hub
        dns:
            - 11.1.1.1
        extra_hosts:
            - "testsite.domain.com:11.2.2.167"

Reply all
Reply to author
Forward
0 new messages