{"id":22713164,"url":"https://github.com/ddavison/selenium-openshift-templates","last_synced_at":"2025-06-27T02:36:57.005Z","repository":{"id":47068377,"uuid":"50877200","full_name":"ddavison/selenium-openshift-templates","owner":"ddavison","description":"OpenShift Templates for a scalable Selenium infrastructure","archived":false,"fork":false,"pushed_at":"2021-09-14T23:49:53.000Z","size":18,"stargazers_count":43,"open_issues_count":12,"forks_count":64,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-13T17:46:05.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddavison.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-01T22:48:18.000Z","updated_at":"2023-09-06T10:44:06.000Z","dependencies_parsed_at":"2022-08-23T04:00:35.258Z","dependency_job_id":null,"html_url":"https://github.com/ddavison/selenium-openshift-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ddavison/selenium-openshift-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddavison%2Fselenium-openshift-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddavison%2Fselenium-openshift-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddavison%2Fselenium-openshift-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddavison%2Fselenium-openshift-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddavison","download_url":"https://codeload.github.com/ddavison/selenium-openshift-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddavison%2Fselenium-openshift-templates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262179246,"owners_count":23271199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T14:08:27.375Z","updated_at":"2025-06-27T02:36:56.975Z","avatar_url":"https://github.com/ddavison.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Selenium OpenShift Templates\n===\n\n\u003e OpenShift Templates used for a Scalable Selenium infrastructure and these templates tested on OpenShift 4.5.8.\n\nUsage\n===\n\n\n```bash\n$ oc create -f selenium-hub.yaml\n$ oc create -f selenium-node-chrome.yaml\n$ oc create -f selenium-node-firefox.yaml\n$ oc process selenium-hub | oc create -f -\n$ oc process selenium-node-chrome | oc create -f -\n$ oc process selenium-node-firefox | oc create -f -\n```\n\nOnce all pods up and running and check the grid status with the following endpoint and you should see following output.\nHub status url: https://OCP-ROUTE/wd/hub/status\n\n**Note:** Please replace OCP-ROUTE based on your environment.\n\n```\n{\n  \"value\": {\n    \"ready\": true,\n    \"message\": \"Selenium Grid ready.\",\n    \"nodes\": [\n      {\n        \"id\": \"72eaea16-1c0a-44b2-987f-c71cc36d6a77\",\n        \"uri\": \"http:\\u002f\\u002f10.254.16.254:5555\",\n        \"maxSessions\": 1,\n        \"stereotypes\": [\n          {\n            \"capabilities\": {\n              \"browserName\": \"chrome\"\n            },\n            \"count\": 1\n          }\n        ],\n        \"sessions\": [\n        ]\n      },\n      {\n        \"id\": \"ee1d92e8-52cd-40a0-9516-cb4c424da8d8\",\n        \"uri\": \"http:\\u002f\\u002f10.254.17.0:5555\",\n        \"maxSessions\": 1,\n        \"stereotypes\": [\n          {\n            \"capabilities\": {\n              \"browserName\": \"firefox\"\n            },\n            \"count\": 1\n          }\n        ],\n        \"sessions\": [\n        ]\n      }\n    ]\n  }\n}\n```\n\nIn case you want to have VNC access to your chrome node, you need to add node chrome debug and you can follow same steps for firefox node as well.\n```\n$ oc create -f selenium-node-chrome-debug.yaml\n```\nand then to view the node via VNC, you use port forwarding to localhost.\n\nFirst you get the pod of chrome debug\n```\n$ oc get pods\nNAME                                 READY     STATUS      RESTARTS   AGE\nselenium-hub-1-b8w96                 1/1       Running     5          4d\nselenium-node-chrome-debug-1-2gcqn   1/1       Running     4          3d\n\n```\nRun port forwarding\n```\n$ oc port-forward -p selenium-node-chrome-debug-1-2gcqn 5900:5900\nForwarding from 127.0.0.1:5900 -\u003e 5900\nForwarding from [::1]:5900 -\u003e 5900\nHandling connection for 5900\n```\n\n```\n$ vncviewer 127.0.0.1:5900\n```\nNB: The default password to access to VNC is `secret`. You can change it by editing the chrome debug Dockerfile following [this](https://github.com/SeleniumHQ/docker-selenium/tree/master/NodeChromeDebug#how-to-use-this-image).\n\n\nExample\n===\n\n![openshift 1 hub 1 node](http://i.imgur.com/Ux3VcE3.png)\n![hub 1 node](http://i.imgur.com/FBIDvta.png)\n![openshift 1 hub 1 nodes](http://i.imgur.com/JpMkwTP.png)\n![hub 2 nodes](http://i.imgur.com/LBqQ0KS.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddavison%2Fselenium-openshift-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddavison%2Fselenium-openshift-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddavison%2Fselenium-openshift-templates/lists"}