{"action":"created","issue":{"url":"https://api.github.com/repos/elgalu/docker-selenium/issues/132","repository_url":"https://api.github.com/repos/elgalu/docker-selenium","labels_url":"https://api.github.com/repos/elgalu/docker-selenium/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/elgalu/docker-selenium/issues/132/comments","events_url":"https://api.github.com/repos/elgalu/docker-selenium/issues/132/events","html_url":"https://github.com/elgalu/docker-selenium/issues/132","id":188535810,"number":132,"title":"Using VNC Viewer with Nodes","user":{"login":"seangerhardt-wf","id":16544889,"avatar_url":"https://avatars.githubusercontent.com/u/16544889?v=3","gravatar_id":"","url":"https://api.github.com/users/seangerhardt-wf","html_url":"https://github.com/seangerhardt-wf","followers_url":"https://api.github.com/users/seangerhardt-wf/followers","following_url":"https://api.github.com/users/seangerhardt-wf/following{/other_user}","gists_url":"https://api.github.com/users/seangerhardt-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/seangerhardt-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seangerhardt-wf/subscriptions","organizations_url":"https://api.github.com/users/seangerhardt-wf/orgs","repos_url":"https://api.github.com/users/seangerhardt-wf/repos","events_url":"https://api.github.com/users/seangerhardt-wf/events{/privacy}","received_events_url":"https://api.github.com/users/seangerhardt-wf/received_events","type":"User","site_admin":false},"labels":[{"id":112706628,"url":"https://api.github.com/repos/elgalu/docker-selenium/labels/question","name":"question","color":"cc317c","default":true},{"id":220780744,"url":"https://api.github.com/repos/elgalu/docker-selenium/labels/waiting-retest","name":"waiting-retest","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-10T15:20:33Z","updated_at":"2016-11-10T16:39:59Z","closed_at":null,"body":"#### Operating System\r\n- OS: Mac OS X 10.10.5\r\n#### Image version\r\n- latest elgalu/selenium\r\n#### Docker version\r\n- Docker 1.12.1\r\n#### Docker-Compose\r\n- docker-compose version 1.8.0\r\n\r\nHello,\r\n\r\nI'm able to successfully use a VNC viewer when I use a standalone image. Here's a snippet from the docker-compose:\r\n```\r\n  selenium_chrome_standalone:\r\n    volumes:\r\n      - shared:/shared\r\n      - shared:/videos\r\n    image: elgalu/selenium\r\n    shm_size: 4g\r\n    mem_limit: 8g\r\n    memswap_limit: 16g\r\n    environment:\r\n      - VNC_PASSWORD=secret\r\n      - PICK_ALL_RANDMON_PORTS=false\r\n      - SCREEN_WIDTH=1300\r\n      - SCREEN_HEIGHT=999\r\n      - VIDEO=true\r\n      - FFMPEG_FRAME_RATE=25\r\n      - VIDEO_FILE_NAME=test_run\r\n      - VIDEO_FILE_EXTENSION=mkv\r\n      - VIDEO_CHUNK_SECS=00:15:00\r\n#    Used for VNC debugging\r\n    ports:\r\n      - \"5900:25900\"\r\n```\r\n\r\nI can then VNC to the image with `open vnc://:secret@192.168.99.100:5900`\r\n\r\nNow I want to use a grid with a couple nodes, and still be able to VNC to the nodes running the tests.\r\n**The problem I have is knowing what port to use for VNC**. Using the example docker-compose from this project, that could be any port of 50. I've tried hardcoding the VNC_PORT env vars as well, but have not had any luck. Does anyone know how to use VNC viewer with a node for this project?\r\n```\r\n  selenium_chrome_standalone_hub:\r\n    volumes:\r\n      - shared:/shared\r\n      - shared:/videos\r\n    image: elgalu/selenium\r\n    shm_size: 4g\r\n    mem_limit: 8g\r\n    memswap_limit: 16g\r\n    environment:\r\n      - VNC_PASSWORD=secret\r\n      - GRID=true\r\n      - PICK_ALL_RANDMON_PORTS=false\r\n      - SELENIUM_HUB_PORT=4444\r\n      - HUB_PORT_4444_TCP_ADDR=hub\r\n      - HUB_PORT_4444_TCP_PORT=4444\r\n      - CHROME=false\r\n      - FIREFOX=false\r\n      - RC_CHROME=false\r\n      - RC_FIREFOX=false\r\n    ports:\r\n      - \"4444:4444\"\r\n      - \"5900:25900\"\r\n      - \"40650-40701:40650-40701\"\r\n\r\n  chrome_node_1:\r\n    volumes:\r\n      - shared:/shared\r\n      - shared:/videos\r\n    image: elgalu/selenium\r\n    network_mode: \"service:selenium_chrome_standalone_hub\"\r\n    shm_size: 4g\r\n    mem_limit: 8g\r\n    memswap_limit: 16g\r\n      - VNC_PASSWORD=secret\r\n      - SELENIUM_HUB_PORT=4444\r\n      - VNC_FROM_PORT\r\n      - VNC_TO_PORT\r\n      - SCREEN_WIDTH=1300\r\n      - SCREEN_HEIGHT=999\r\n      - PICK_ALL_RANDMON_PORTS=true\r\n      - GRID=false\r\n      - CHROME=true\r\n      - FIREFOX=false\r\n      - RC_CHROME=false\r\n      - RC_FIREFOX=false\r\n      - VIDEO=true\r\n      - FFMPEG_FRAME_RATE=25\r\n      - VIDEO_FILE_NAME=test_run\r\n      - VIDEO_FILE_EXTENSION=mkv\r\n      - VIDEO_CHUNK_SECS=00:15:00\r\n\r\n  chrome_node_2:\r\n    volumes:\r\n      - shared:/shared\r\n      - shared:/videos\r\n    image: elgalu/selenium\r\n    network_mode: \"service:selenium_chrome_standalone_hub\"\r\n    shm_size: 4g\r\n    mem_limit: 8g\r\n    memswap_limit: 16g\r\n    environment:\r\n      - DEFAULT_VNC_PORT=40651\r\n      - VNC_PORT=40651\r\n      - VNC_PASSWORD=secret\r\n      - SELENIUM_HUB_PORT=4444\r\n      - VNC_FROM_PORT\r\n      - VNC_TO_PORT\r\n      - SCREEN_WIDTH=1300\r\n      - SCREEN_HEIGHT=999\r\n      - PICK_ALL_RANDMON_PORTS=true\r\n      - GRID=false\r\n      - CHROME=true\r\n      - FIREFOX=false\r\n      - RC_CHROME=false\r\n      - RC_FIREFOX=false\r\n      - VIDEO=true\r\n      - FFMPEG_FRAME_RATE=25\r\n      - VIDEO_FILE_NAME=test_run\r\n      - VIDEO_FILE_EXTENSION=mkv\r\n      - VIDEO_CHUNK_SECS=00:15:00\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/elgalu/docker-selenium/issues/comments/259740140","html_url":"https://github.com/elgalu/docker-selenium/issues/132#issuecomment-259740140","issue_url":"https://api.github.com/repos/elgalu/docker-selenium/issues/132","id":259740140,"user":{"login":"seangerhardt-wf","id":16544889,"avatar_url":"https://avatars.githubusercontent.com/u/16544889?v=3","gravatar_id":"","url":"https://api.github.com/users/seangerhardt-wf","html_url":"https://github.com/seangerhardt-wf","followers_url":"https://api.github.com/users/seangerhardt-wf/followers","following_url":"https://api.github.com/users/seangerhardt-wf/following{/other_user}","gists_url":"https://api.github.com/users/seangerhardt-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/seangerhardt-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seangerhardt-wf/subscriptions","organizations_url":"https://api.github.com/users/seangerhardt-wf/orgs","repos_url":"https://api.github.com/users/seangerhardt-wf/repos","events_url":"https://api.github.com/users/seangerhardt-wf/events{/privacy}","received_events_url":"https://api.github.com/users/seangerhardt-wf/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T16:39:59Z","updated_at":"2016-11-10T16:39:59Z","body":"```\r\n  selenium_chrome_standalone_hub:\r\n    volumes:\r\n      - shared:/shared\r\n      - shared:/videos\r\n    image: elgalu/selenium\r\n    shm_size: 4g\r\n    mem_limit: 8g\r\n    memswap_limit: 16g\r\n    environment:\r\n      - GRID=true\r\n      - PICK_ALL_RANDMON_PORTS=false\r\n      - SELENIUM_HUB_PORT=4444\r\n      - HUB_PORT_4444_TCP_ADDR=selenium_chrome_standalone_hub\r\n      - HUB_PORT_4444_TCP_PORT=4444\r\n      - CHROME=false\r\n      - FIREFOX=false\r\n      - RC_CHROME=false\r\n      - RC_FIREFOX=false\r\n    ports:\r\n      - \"4444:4444\"\r\n      - \"40650-40651:40650-40651\"\r\n\r\n  chrome_node_1:\r\n    volumes:\r\n      - shared:/shared\r\n      - shared:/videos\r\n    image: elgalu/selenium\r\n    network_mode: \"service:selenium_chrome_standalone_hub\"\r\n    shm_size: 4g\r\n    mem_limit: 8g\r\n    memswap_limit: 16g\r\n    environment:\r\n      - VNC_PASSWORD=secret\r\n      - VNC_PORT=40650\r\n      - SELENIUM_HUB_PORT=4444\r\n      - SCREEN_WIDTH=1300\r\n      - SCREEN_HEIGHT=999\r\n      - PICK_ALL_RANDMON_PORTS=true\r\n      - GRID=false\r\n      - CHROME=true\r\n      - FIREFOX=false\r\n      - RC_CHROME=false\r\n      - RC_FIREFOX=false\r\n      - VIDEO=true\r\n      - FFMPEG_FRAME_RATE=25\r\n      - VIDEO_FILE_NAME=test_run\r\n      - VIDEO_FILE_EXTENSION=mkv\r\n      - VIDEO_CHUNK_SECS=00:15:00\r\n\r\n  chrome_node_2:\r\n    volumes:\r\n      - shared:/shared\r\n      - shared:/videos\r\n    image: elgalu/selenium\r\n    network_mode: \"service:selenium_chrome_standalone_hub\"\r\n    shm_size: 4g\r\n    mem_limit: 8g\r\n    memswap_limit: 16g\r\n    environment:\r\n      - VNC_PASSWORD=secret\r\n      - VNC_PORT=40650\r\n      - SELENIUM_HUB_PORT=4444\r\n      - SCREEN_WIDTH=1300\r\n      - SCREEN_HEIGHT=999\r\n      - PICK_ALL_RANDMON_PORTS=true\r\n      - GRID=false\r\n      - CHROME=true\r\n      - FIREFOX=false\r\n      - RC_CHROME=false\r\n      - RC_FIREFOX=false\r\n      - VIDEO=true\r\n      - FFMPEG_FRAME_RATE=25\r\n      - VIDEO_FILE_NAME=test_run\r\n      - VIDEO_FILE_EXTENSION=mkv\r\n      - VIDEO_CHUNK_SECS=00:15:00\r\n```"}}
{"actor":{"display_login":"seangerhardt-wf"}}