{"id":21158305,"url":"https://github.com/simbo/docker-node-chrome","last_synced_at":"2026-04-02T02:59:38.308Z","repository":{"id":141795757,"uuid":"97175436","full_name":"simbo/docker-node-chrome","owner":"simbo","description":"Docker image with node and headless chrome (i.e. for testing with karma or protractor).","archived":false,"fork":false,"pushed_at":"2017-07-25T17:40:40.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T09:09:23.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/simbo/node-chrome/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simbo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-14T00:17:22.000Z","updated_at":"2019-04-27T01:13:27.000Z","dependencies_parsed_at":"2024-06-26T02:30:08.298Z","dependency_job_id":null,"html_url":"https://github.com/simbo/docker-node-chrome","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simbo%2Fdocker-node-chrome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simbo%2Fdocker-node-chrome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simbo%2Fdocker-node-chrome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simbo%2Fdocker-node-chrome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simbo","download_url":"https://codeload.github.com/simbo/docker-node-chrome/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243599826,"owners_count":20317174,"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-11-20T12:19:51.742Z","updated_at":"2025-12-28T19:36:38.135Z","avatar_url":"https://github.com/simbo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-node-chrome\n==================\n\n\u003e Docker image with node and headless chrome (i.e. for testing with karma or protractor).\n\n[![docker:simbo/node-chrome](https://img.shields.io/docker/build/simbo/node-chrome.svg)](https://hub.docker.com/r/simbo/node-chrome/)\n\nDerivate of [simbo/node](https://hub.docker.com/r/simbo/node/).\n\n``` sh\ndocker pull simbo/node-chrome:latest\n```\n\n\n## Version tags\n\n  - `latest` / `8-59` / `8.1.4-59.0.3071.115`  \n    Node 8.1.4  \n    Google Chrome 59.0.3071.115\n\n\n## Usage\n\n\n### Docker\n\nUse these flags with `docker run` or add them to your service in `docker-compose.yml`:\n\n  - `--add-cap=SYS_ADMIN`  \n    This fixes a user namespace issue with OSX.  \n    An alternative mitigation would be to a [special seccomp profile](https://twitter.com/jessfraz/status/681934414687801345).\n\n  - `--shm-size=1024M`  \n    Chrome needs some more shared memory than docker’s default of 64 MB.  \n    Alternatively you can mount `/dev/shm` from your host machine.\n\n\n### Karma\n\n`karma.conf.js` with [karma-chrome-launcher](https://www.npmjs.com/package/karma-chrome-launcher) installed:\n\n``` js\nmodule.exports = (config) =\u003e {\n  config.set({\n    mime: {\n      'text/x-typescript': ['ts','tsx']\n    },\n    browsers: [\n      'Chrome_launcher'\n    ],\n    customLaunchers: {\n      Chrome_launcher: {\n        base: 'ChromeHeadless',\n        flags: [\n          '--window-size=1280x1024'\n        ],\n      }\n    }\n  });\n};\n```\n\n\n### Protractor\n\nRun `webdriver-manager update` to install chromedriver.\n\n`protractor.conf.js`:\n\n``` js\nmodule.exports.config = {\n  directConnect: true,\n  capabilities: {\n    browserName: 'chrome',\n    chromeOptions: {\n      args: [\n        '--headless',\n        '--disable-gpu',\n        '--window-size=1280x1024'\n      ]\n    }\n  }\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimbo%2Fdocker-node-chrome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimbo%2Fdocker-node-chrome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimbo%2Fdocker-node-chrome/lists"}