{"id":22535328,"url":"https://github.com/danielwhatmuff/alpine-node-karma-chromium-xvfb","last_synced_at":"2026-04-28T12:06:24.090Z","repository":{"id":84757807,"uuid":"117654315","full_name":"danielwhatmuff/alpine-node-karma-chromium-xvfb","owner":"danielwhatmuff","description":"Run headless browser tests using Karma + xvfb + Chromium on Alpine Linux","archived":false,"fork":false,"pushed_at":"2019-02-15T13:10:12.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"development","last_synced_at":"2025-09-19T12:42:49.598Z","etag":null,"topics":["alpine","alpine-linux","chromium","docker","headless","headless-browsers","javascript","karma","karma-test-runner","node","nodejs","testing","xvfb"],"latest_commit_sha":null,"homepage":null,"language":null,"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/danielwhatmuff.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-16T08:17:01.000Z","updated_at":"2018-01-16T08:52:30.000Z","dependencies_parsed_at":"2023-03-06T21:00:31.322Z","dependency_job_id":null,"html_url":"https://github.com/danielwhatmuff/alpine-node-karma-chromium-xvfb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/danielwhatmuff/alpine-node-karma-chromium-xvfb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Falpine-node-karma-chromium-xvfb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Falpine-node-karma-chromium-xvfb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Falpine-node-karma-chromium-xvfb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Falpine-node-karma-chromium-xvfb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielwhatmuff","download_url":"https://codeload.github.com/danielwhatmuff/alpine-node-karma-chromium-xvfb/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Falpine-node-karma-chromium-xvfb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["alpine","alpine-linux","chromium","docker","headless","headless-browsers","javascript","karma","karma-test-runner","node","nodejs","testing","xvfb"],"created_at":"2024-12-07T10:07:07.501Z","updated_at":"2026-04-28T12:06:24.060Z","avatar_url":"https://github.com/danielwhatmuff.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node + Karma + Chromium + Xvfb\n\n## Run headless browser tests within an Alpine Linux Docker image\n\n### Build the image\n- Clone this repo \n```\n$ git clone git@github.com:danielwhatmuff/alpine-node-karma-chromium-xvfb.git\n```\n- Run:\n```bash\n$ docker build -t danielwhatmuff/alpine-node-karma-chromium-xvfb .\n```\n### Or pull the image\n```\n$ docker pull danielwhatmuff/alpine-node-karma-chromium-xvfb\n```\n\n### Configure Karma conf and package.json\n- Within your karma.conf.js add a custom launcher:\n```\nconst config = {\n  customLaunchers: {\n    ChromiumNoSandbox: {\n      base: 'ChromiumHeadless',\n      flags: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-translate', '--disable-extensions']\n    }\n  },\n  ...\n```\n- Within package.json add a script to execute using Chromium headless\n```\n\"scripts\": {\n  \"test-in-chromium\": \"CI=true karma start --single-run --browsers ChromiumNoSandbox\",\n  ...\n```\n\n### Run your tests interactively\n```\n$ docker run -v $(pwd):/root/ -t danielwhatmuff/alpine-node-karma-chromium-xvfb /bin/sh\n$ Xvfb :99 -ac -screen 0 1280x720x16 -nolisten tcp \u0026\n$ npm install\n$ npm run test-in-chromium\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Falpine-node-karma-chromium-xvfb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielwhatmuff%2Falpine-node-karma-chromium-xvfb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Falpine-node-karma-chromium-xvfb/lists"}