{"id":22615642,"url":"https://github.com/marcellodesales/chrome-xvfb-java-gradle-docker","last_synced_at":"2026-01-07T20:04:54.407Z","repository":{"id":142072464,"uuid":"44187840","full_name":"marcellodesales/chrome-xvfb-java-gradle-docker","owner":"marcellodesales","description":"Headless chrome with Gradle and Java","archived":false,"fork":false,"pushed_at":"2015-10-14T15:28:03.000Z","size":129,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T10:46:23.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/marcellodesales.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}},"created_at":"2015-10-13T15:57:06.000Z","updated_at":"2016-06-30T05:58:09.000Z","dependencies_parsed_at":"2023-03-13T12:42:44.032Z","dependency_job_id":null,"html_url":"https://github.com/marcellodesales/chrome-xvfb-java-gradle-docker","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/marcellodesales%2Fchrome-xvfb-java-gradle-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fchrome-xvfb-java-gradle-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fchrome-xvfb-java-gradle-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fchrome-xvfb-java-gradle-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcellodesales","download_url":"https://codeload.github.com/marcellodesales/chrome-xvfb-java-gradle-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122247,"owners_count":20726822,"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-08T19:08:42.250Z","updated_at":"2026-01-07T20:04:54.332Z","avatar_url":"https://github.com/marcellodesales.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"chrome-xvfb-java-gradle-docker\n----\n\nRuns ANY Selenium-based application using Gradle. This base image can be used by ANY Java project that requires\nrunning the application with a headless Firefox browser. That's ideal for automated test cases, Web Crawlers, etc.\n\nRunning\n-----\n\nSuppose you have the following java project with the following structure:\n\n```\n~/dev/github/public/quantogastei/commons on ⭠ master ⌚ 23:10:04\n$ tree -L 3\n.\n├── build.gradle\n├── README.md\n├── settings.gradle\n└── src\n    └── main\n        ├── java\n        └── resources\n\n```\n\nRun the following:\n\n```\ncd /your/java/root/dir\n$ docker run -ti --rm -v ${PWD}:/usr/bin/app marcellodesales/gradle-firefox gradle YOUR_GRADLE_COMMAND\n```\n\nFor instance, you can run the `gradle jar` as follows:\n\n```\n~/dev/github/public/quantogastei/commons on ⭠ master! ⌚ 22:23:49\n$ docker run -ti --rm -v ${PWD}:/usr/bin/app gradle-firefox gradle jar\nTue Oct 13 05:23:51 UTC 2015\nMozilla Firefox 41.0\nStarting Xvfb ...\n:compileJava\nDownload https://repo1.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.pom\nDownload https://repo1.maven.org/maven2/org/apache/commons/commons-parent/25/commons-parent-25.pom\nDownload https://repo1.maven.org/maven2/org/apache/apache/9/apache-9.pom\n...\n...\nDownload https://repo1.maven.org/maven2/com/google/code/gson/gson/2.3.1/gson-2.3.1.pom\nDownload https://repo1.maven.org/maven2/org/eclipse/jetty/websocket/websocket-common/9.2.11.v20150529/websocket-common-9.2.11.v20150529.jar\nDownload https://repo1.maven.org/maven2/org/eclipse/jetty/websocket/websocket-api/9.2.11.v20150529/websocket-api-9.2.11.v20150529.jar\nDownload https://repo1.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar\nNote: /usr/bin/app/src/main/java/com/quantogastei/utils/QGAddressing.java uses or overrides a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\n:processResources UP-TO-DATE\n:classes\n:jar\nJar assembled at /usr/bin/app/build/libs/quantogastei-commons.jar\n\nBUILD SUCCESSFUL\n\nTotal time: 14.443 secs\n\nThis build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.7/userguide/gradle_daemon.html\n```\n\nThe artifacts are created inside the Docker Container and exposed through the `volume` used. That way, all the files from\nthe build are now available in both the built container, which was removed with `--rm`, and in the local file-system:\n\n```\n~/dev/github/public/quantogastei/commons on ⭠ master ⌚ 23:10:04\n$ tree -L 3\n.\n├── build\n│   ├── classes\n│   │   └── main\n│   ├── dependency-cache\n│   ├── libs\n│   │   └── quantogastei-commons.jar\n│   ├── resources\n│   │   └── main\n│   └── tmp\n│       ├── compileJava\n│       └── jar\n├── build.gradle\n├── README.md\n├── settings.gradle\n└── src\n    └── main\n        ├── java\n        └── resources\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fchrome-xvfb-java-gradle-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcellodesales%2Fchrome-xvfb-java-gradle-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fchrome-xvfb-java-gradle-docker/lists"}