{"id":42336007,"url":"https://github.com/markhobson/docker-maven-chrome","last_synced_at":"2026-01-27T14:16:20.324Z","repository":{"id":42617677,"uuid":"74613253","full_name":"markhobson/docker-maven-chrome","owner":"markhobson","description":"Docker image for Java automated UI tests.","archived":false,"fork":false,"pushed_at":"2025-02-25T21:14:46.000Z","size":147,"stargazers_count":102,"open_issues_count":6,"forks_count":83,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-02-25T22:23:30.614Z","etag":null,"topics":["chrome","docker-image","maven"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/markhobson/maven-chrome/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markhobson.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":"2016-11-23T20:54:26.000Z","updated_at":"2025-02-25T21:14:50.000Z","dependencies_parsed_at":"2024-02-24T14:28:43.684Z","dependency_job_id":"d9bf963b-a61e-4372-b5ca-b484fd855b65","html_url":"https://github.com/markhobson/docker-maven-chrome","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markhobson/docker-maven-chrome","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhobson%2Fdocker-maven-chrome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhobson%2Fdocker-maven-chrome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhobson%2Fdocker-maven-chrome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhobson%2Fdocker-maven-chrome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markhobson","download_url":"https://codeload.github.com/markhobson/docker-maven-chrome/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhobson%2Fdocker-maven-chrome/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28814609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: 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":["chrome","docker-image","maven"],"created_at":"2026-01-27T14:16:20.211Z","updated_at":"2026-01-27T14:16:20.314Z","avatar_url":"https://github.com/markhobson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markhobson/maven-chrome\n\nDocker image for Java automated UI tests.\n\nIncludes:\n\n* JDK 11/17/21\n* Maven 3.9.10\n* Chrome 138.0.7204.183\n* ChromeDriver 138.0.7204.183\n\nAvailable on [Docker Hub](https://hub.docker.com/r/markhobson/maven-chrome/).\n\n## Tags\n\nThe following Docker tags are available:\n\n* `jdk-11` [(jdk-11/Dockerfile)](jdk-11/Dockerfile)\n* `jdk-17` [(jdk-17/Dockerfile)](jdk-17/Dockerfile)\n* `jdk-21`, `latest` [(jdk-21/Dockerfile)](jdk-21/Dockerfile)\n\n## Demo\n\nSee the [demo](demo) Maven project to see how this Docker image can be used to run UI tests. To run the demo within the latest version of this image on Docker Hub:\n\n```bash\ncd demo\n./run.sh\n```\n\n## Building\n\nTo build and test the Docker images locally, install [Bats](https://bats-core.readthedocs.io/) and run:\n\n```bash\n./build.sh\n```\n\n## Maintaining\n\nTo upgrade the Docker images to use the latest version of Chrome, install [dctrl-tools](https://pkgs.org/download/dctrl-tools) and run:\n\n```bash\n./upgrade.sh chrome\n```\n\nTo upgrade the Docker images to use the latest version of ChromeDriver:\n\n```bash\n./upgrade.sh chromedriver\n```\n\nNote that both of these scripts will also commit to Git.\n\n## Tips\n\n### Using with Selenium\n\nConfigure [Selenium](https://www.selenium.dev/) to launch Chrome in headless mode:\n\n```java\nChromeOptions options = new ChromeOptions().addArguments(\"--headless=new\");\nWebDriver driver = new ChromeDriver(options);\n```\n\n### Configure Protractor to use bundled ChromeDriver\n\nTo configure [Protractor](https://www.protractortest.org/) to use the version of ChromeDriver bundled in this image, set [`chromeDriver`](https://github.com/angular/protractor/blob/master/lib/config.ts#L76) in Protractor's `conf.js` file:\n\n```js\nexports.config = {\n  chromeDriver: '/usr/bin/chromedriver'\n}\n```\n\n### Chrome crashes\n\nChrome uses `/dev/shm` for runtime data which is 64MB by default under Docker. If this is not sufficient then this can cause [Chrome to crash](https://bugs.chromium.org/p/chromium/issues/detail?id=522853). Possible workarounds:\n\n* Increase the size of `/dev/shm`\n* Mount `/dev/shm` to the host's\n* Start Chrome with the flag `--disable-dev-shm-usage`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkhobson%2Fdocker-maven-chrome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkhobson%2Fdocker-maven-chrome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkhobson%2Fdocker-maven-chrome/lists"}