{"id":37975005,"url":"https://github.com/hamdifourati/cordova-android-builder","last_synced_at":"2026-01-16T18:28:36.209Z","repository":{"id":54605943,"uuid":"123447186","full_name":"hamdifourati/cordova-android-builder","owner":"hamdifourati","description":"Build Cordova Application for Android using Docker","archived":false,"fork":false,"pushed_at":"2026-01-12T21:21:37.000Z","size":17,"stargazers_count":34,"open_issues_count":2,"forks_count":28,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T01:49:32.295Z","etag":null,"topics":["cordova-android","docker-image"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/hamdifourati.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-01T14:39:09.000Z","updated_at":"2026-01-12T21:21:43.000Z","dependencies_parsed_at":"2024-08-28T12:47:02.177Z","dependency_job_id":"641b57f2-8735-4301-aac6-3bb13f73ae6f","html_url":"https://github.com/hamdifourati/cordova-android-builder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hamdifourati/cordova-android-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdifourati%2Fcordova-android-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdifourati%2Fcordova-android-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdifourati%2Fcordova-android-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdifourati%2Fcordova-android-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamdifourati","download_url":"https://codeload.github.com/hamdifourati/cordova-android-builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdifourati%2Fcordova-android-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["cordova-android","docker-image"],"created_at":"2026-01-16T18:28:36.093Z","updated_at":"2026-01-16T18:28:36.181Z","avatar_url":"https://github.com/hamdifourati.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-android-builder\n\n## 🚀 Overview\n\n`cordova-android-builder` is a lightweight Docker image designed to simplify the process of building Cordova Android applications. It provides a consistent and isolated environment with all the necessary tools (Node.js, npm, Cordova, Android SDK, Gradle) pre-configured, allowing you to build your Android APKs without worrying about local environment setups or conflicts.\n\nThis project is ideal for CI/CD pipelines, automated build systems, or local development where you need a clean, reproducible build environment for your Cordova Android projects.\n\n## ✨ Features\n\n* **Pre-configured Environment:** Includes Node.js, npm, Cordova CLI, Android SDK, and Gradle.\n\n* **Consistent Builds:** Ensures your builds are reproducible across different machines.\n\n* **Isolation:** Prevents conflicts with your local development environment.\n\n* **Lightweight:** Optimized Docker image for faster pulls and smaller footprint.\n\n* **CI/CD Friendly:** Easily integrates into your continuous integration and deployment workflows.\n\n## 📦 Getting Started\n\nThese instructions will get you a copy of the project image up and running on your local machine.\n\n### Prerequisites\n\nYou need to have Docker installed on your system.\n\n* [Docker](https://docs.docker.com/get-started/)\n\n### Usage\n\nThe `cordova-android-builder` image expects your Cordova project to be mounted into the container at `/app`. You can then execute Cordova commands from within this directory.\n\n#### 1. Pull the Docker Image\n\nFirst, pull the latest version of the image from Docker Hub:\n\n```\ndocker pull hamdifourati/cordova-android-builder:latest\n```\n\nOr a specific version:\n```\ndocker pull hamdifourati/cordova-android-builder:cordova-13 # Example version\n```\n\n#### 2. Build Your Cordova Android Project\n\nNavigate to your Cordova project's root directory on your host machine. Then, run the Docker container, mounting your project and executing the build command:\n```\ndocker run --rm -v \"$(pwd):/app\" hamdifourati/cordova-android-builder:latest /bin/bash -c \"cd /app \u0026\u0026 cordova platform add android \u0026\u0026 cordova build android --release\"\n```\n\n**Explanation of the command:**\n\n* `docker run`: Executes a Docker container.\n\n* `--rm`: Automatically removes the container when it exits.\n\n* `-v \"$(pwd):/app\"`: Mounts your current host directory (where your Cordova project is) into the container's `/app` directory. This is crucial for the container to access your project files and for the build output (APK) to be saved back to your host.\n\n* `hamdifourati/cordova-android-builder:latest`: Specifies the Docker image to use.\n\n* `/bin/bash -c \"...\"`: Executes a shell command inside the container.\n\n  * `cd /app`: Changes the directory inside the container to your mounted project.\n\n  * `cordova platform add android`: Adds the Android platform to your Cordova project (if not already added).\n\n  * `cordova build android --release`: Builds the Android application in release mode. For debug builds, remove `--release`.\n\nAfter the command completes, your generated APK file(s) will be available in your host machine's `platforms/android/app/build/outputs/apk/release/` (or `debug/`) directory within your Cordova project.\n\n## 💡 Usage Examples\n\n### Building a Debug APK\n```\ndocker run --rm -v \"$(pwd):/app\" hamdifourati/cordova-android-builder:latest /bin/bash -c \"cd /app \u0026\u0026 cordova platform add android \u0026\u0026 cordova build android\"\n```\n\n### Running Cordova Commands\n\nYou can run any Cordova CLI command by replacing `cordova build android` with your desired command.\n\nExample: Prepare the Android platform\n```\ndocker run --rm -v \"$(pwd):/app\" hamdifourati/cordova-android-builder:latest /bin/bash -c \"cd /app \u0026\u0026 cordova prepare android\"\n```\nExample: List Cordova plugins\n```\ndocker run --rm -v \"$(pwd):/app\" hamdifourati/cordova-android-builder:latest /bin/bash -c \"cd /app \u0026\u0026 cordova plugin ls\"\n```\n\n### Interactive Shell\n\nIf you want to explore the environment or debug, you can open an interactive shell inside the container:\n```\ndocker run --rm -it -v \"$(pwd):/app\" hamdifourati/cordova-android-builder:latest /bin/bash\n```\n\nOnce inside, you can navigate to `/app` and run Cordova commands directly. Type `exit` to leave the shell.\n\n## 🐳 Docker Hub\n\nThe `cordova-android-builder` Docker image is publicly available on Docker Hub. You can find all available tags and versions there.\n\n* [**View on Docker Hub**](https://hub.docker.com/r/hamdifourati/cordova-android-builder)\n\n### Available Tags\n\nWe provide tags for different Cordova and Android SDK versions. It's recommended to use a specific version tag for production builds to ensure consistency.\n\n* `latest`: Points to the most recent stable build.\n\n* `android-35`: Corresponds to Cordova with Android 35.\n\n* `cordova-13`: Corresponds to Cordova 13.\n\n* ...and more. Check the [Docker Hub page](https://hub.docker.com/r/hamdifourati/cordova-android-builder/tags) for a complete list of tags.\n\nTo use a specific version, simply replace `latest` with the desired tag in your `docker pull` and `docker run` commands.\n\n## 🤝 Contributing\n\nContributions are welcome! If you have suggestions for improvements, bug reports, or want to contribute code, please feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com/hamdifourati/cordova-android-builder).\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## ❓ Support / Contact\n\nIf you have any questions or need assistance, please open an issue on the [GitHub repository](https://www.google.com/search?q=https://github.com/hamdifourati/cordova-android-builder/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamdifourati%2Fcordova-android-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamdifourati%2Fcordova-android-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamdifourati%2Fcordova-android-builder/lists"}