{"id":28000256,"url":"https://github.com/hummusonrails/docker-ai-model-runner-examples","last_synced_at":"2026-04-22T23:33:51.317Z","repository":{"id":286341584,"uuid":"951153837","full_name":"hummusonrails/docker-ai-model-runner-examples","owner":"hummusonrails","description":"Examples using the new Docker AI Model Runner feature","archived":false,"fork":false,"pushed_at":"2025-03-26T15:22:41.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T20:29:57.650Z","etag":null,"topics":["ai","docker","docker-desktop","models"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hummusonrails.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}},"created_at":"2025-03-19T08:42:31.000Z","updated_at":"2025-08-18T15:55:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbe34af4-ba53-464b-be29-7ff77ad19dfa","html_url":"https://github.com/hummusonrails/docker-ai-model-runner-examples","commit_stats":null,"previous_names":["hummusonrails/docker-ai-model-runner-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hummusonrails/docker-ai-model-runner-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hummusonrails%2Fdocker-ai-model-runner-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hummusonrails%2Fdocker-ai-model-runner-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hummusonrails%2Fdocker-ai-model-runner-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hummusonrails%2Fdocker-ai-model-runner-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hummusonrails","download_url":"https://codeload.github.com/hummusonrails/docker-ai-model-runner-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hummusonrails%2Fdocker-ai-model-runner-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32159957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"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":["ai","docker","docker-desktop","models"],"created_at":"2025-05-08T23:14:36.549Z","updated_at":"2026-04-22T23:33:51.302Z","avatar_url":"https://github.com/hummusonrails.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Docker AI Model Runner\n\n## GitHub Actions CI/CD Workflow\n\n\u003e [!CAUTION]\n\u003e This is **unsupported** currently in GitHub Actions until the MacOS runner uses M3 chips running MacOS 15 or later.\n\nUse Docker's Model Runner feature inside GitHub Actions as part of a CI/CD pipeline. The [example action workflow](.github/workflows/pr_description_validation.yaml) does the following:\n\n1. **Checks out your code:**\nUses GitHub's built-in checkout action to retrieve the latest code from your repository.\n\n2. **Installs Docker Desktop with Model Runner:**\n* Downloads and installs the specified Docker Desktop build optimized for macOS.\n* Starts Docker Desktop in a headless (unattended) mode suitable for CI environments.\n\n3. **Pulls the AI model** from Docker Hub using Docker Model Runner CLI commands.\n\n4. **Validates Pull Request Descriptions:**\n* Automatically reviews the pull request description for clarity, completeness, and adherence to your team's specific guidelines (e.g., stating the change clearly, mentioning related issues, and explicitly calling out breaking changes).\n* Runs locally, securely, and efficiently without external API dependencies.\n\n## Real Time Git Commit Message Generator\n\nCreate a Git hook that generates commit messages in real-time using Docker's Model Runner. This is a simple example of how to set up a Git hook that generates commit messages using Docker's Model Runner.\n\nEnsure you have Docker installed and you have already pulled the AI model using `docker model pull [model_name]` before running the script.\n\n1. **Create a Git Hook:**\nUse the provided [prepare-commit-msg](prepare-commit-msg) script to create a Git hook that generates commit messages in real-time by adding it to the `.git/hooks` directory on your local machine.\n\n2. **Make the Script Executable:**\nMake the script executable by running the following command in your terminal:\n\n```bash\nchmod +x .git/hooks/prepare-commit-msg\n```\n\nNow whenever you run `git commit`, the script will automatically generate a commit message using Docker's Model Runner, for example:\n\n```bash\ngit add .\ngit commit\n# Output: \"feat: Add new feature to improve user experience\"\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhummusonrails%2Fdocker-ai-model-runner-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhummusonrails%2Fdocker-ai-model-runner-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhummusonrails%2Fdocker-ai-model-runner-examples/lists"}