{"id":20334953,"url":"https://github.com/mdb/docker-wct","last_synced_at":"2025-04-11T21:51:37.257Z","repository":{"id":137137483,"uuid":"65380895","full_name":"mdb/docker-wct","owner":"mdb","description":"A Docker image for executing Google Polymer web-component-tester tests in Chrome and Firefox in Xvfb","archived":false,"fork":false,"pushed_at":"2017-02-19T12:06:46.000Z","size":5,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:49:32.223Z","etag":null,"topics":["docker","google-polymer"],"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/mdb.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}},"created_at":"2016-08-10T12:31:34.000Z","updated_at":"2019-10-31T10:39:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa98cd54-a52b-43e3-bff0-ae29c72033f9","html_url":"https://github.com/mdb/docker-wct","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fdocker-wct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fdocker-wct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fdocker-wct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fdocker-wct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/docker-wct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487733,"owners_count":21112188,"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":["docker","google-polymer"],"created_at":"2024-11-14T20:38:42.218Z","updated_at":"2025-04-11T21:51:37.242Z","avatar_url":"https://github.com/mdb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mdb/docker-wct.svg?branch=master)](https://travis-ci.org/mdb/docker-wct)\n\n# docker-wct\n\nA Docker image for running [web-component-tester](https://github.com/Polymer/web-component-tester) tests against [Google Polymer](https://github.com/Polymer/polymer) elements and applications in Firefox and Chrome with no GUI.\n\n## Pull\n\n```\ndocker pull clapclapexcitement/wct\n```\n\n## Example usage\n\n```\ngit clone https://github.com/PolymerElements/iron-ajax.git\n\ndocker run -it \\\n  -v $(pwd)/iron-ajax:/usr/src/app \\\n  --security-opt seccomp:unconfined \\\n  clapclapexcitement/wct bash \\\n  -c \"bower install \u0026\u0026 xvfb-run wct --skip-selenium-install\"\n```\n\nCan you give me that as a one liner?\n\n```\ndocker run -it -v $(pwd)/iron-ajax:/usr/src/app --security-opt seccomp:unconfined clapclapexcitement/wct bash -c \"bower install \u0026\u0026 xvfb-run wct --skip-selenium-install\"\n```\n\n## Building from the `Dockerfile`\n\nBuilding requires that you've installed and are running Docker.\n\n```\ngit clone https://github.com/mdb/docker-wct.git\ncd docker-wct\ndocker build -t your-image-name .\n```\n\n## Notes on `seccomp`\n\n`seccomp-bpf` extends `seccomp` and allows the filtering of system calls using a configurable policy. It is used by Google Chrome/Chromium web browsers on Chrome OS and Linux.\n\nThis requires the use of a suitable profile or `seccomp:unconfined`.\n\nMore can be read [here](https://github.com/jlund/docker-chrome-pulseaudio/issues/8).\n\n## Bonus: render the container's Linux GUI on your Mac\n\nThe `clapclapexcitement/wct` image has no GUI but your Mac does!\n\nTo render the `clapclapexcitement/wct` output to your Mac's Xquartz X Window system...\n\nInstall `socat`, the network utility:\n\n```\nbrew install socat\n```\n\nStart `socat` to expose a local Qquartz socket on a TCP port:\n\n```\nsocat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\\\"$DISPLAY\\\"\n```\n\nPass the display to the container (assuming the VirtualBox host is available on `192.168.59.3`):\n\n```\ndocker run -it \\\n  -e DISPLAY=192.168.59.3:0 \\\n  -v $(pwd)/iron-ajax:/usr/src/app \\\n  --security-opt seccomp:unconfined \\\n  clapclapexcitement/wct bash \\\n  -c \"bower install \u0026\u0026 wct --skip-selenium-install\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fdocker-wct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Fdocker-wct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fdocker-wct/lists"}