{"id":51423931,"url":"https://github.com/dashaun/testcontainer-ollama-qwen2.5-coder","last_synced_at":"2026-07-05T01:30:35.565Z","repository":{"id":355872370,"uuid":"1230019343","full_name":"dashaun/testcontainer-ollama-qwen2.5-coder","owner":"dashaun","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-05T17:14:40.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T17:37:30.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/dashaun.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-05T15:45:00.000Z","updated_at":"2026-05-05T17:14:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dashaun/testcontainer-ollama-qwen2.5-coder","commit_stats":null,"previous_names":["dashaun/testcontainer-ollama-qwen2.5-coder"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dashaun/testcontainer-ollama-qwen2.5-coder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Ftestcontainer-ollama-qwen2.5-coder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Ftestcontainer-ollama-qwen2.5-coder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Ftestcontainer-ollama-qwen2.5-coder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Ftestcontainer-ollama-qwen2.5-coder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashaun","download_url":"https://codeload.github.com/dashaun/testcontainer-ollama-qwen2.5-coder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Ftestcontainer-ollama-qwen2.5-coder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35141083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-05T01:30:34.832Z","updated_at":"2026-07-05T01:30:35.538Z","avatar_url":"https://github.com/dashaun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testcontainer-ollama-qwen2.5-coder\n\nA Spring Shell CLI that builds a pre-warmed [Ollama](https://ollama.com) Docker image containing the `qwen2.5-coder:1.5b` and `nomic-embed-text` models. The resulting image is published to the GitHub Container Registry so workshops and CI environments can pull a ready-to-use image instead of downloading models at runtime.\n\n## Published image\n\n```\nghcr.io/dashaun/testcontainer-ollama-qwen2.5-coder_1.5b:latest\n```\n\n## How it works\n\n1. Starts an `ollama/ollama` container via [Testcontainers](https://testcontainers.com)\n2. Pulls `qwen2.5-coder:1.5b` and `nomic-embed-text` into the running container\n3. Commits the container as a new Docker image tagged with the Ollama version and `:latest`\n4. Pushes both tags to GHCR\n\nA GitHub Actions workflow runs daily, detects new `ollama/ollama` releases, and rebuilds automatically when a newer version is found.\n\n## Prerequisites\n\n- Java 17+\n- Docker Desktop (Mac/Linux)\n- Maven\n\n## Running locally\n\n```bash\nmvn package -DskipTests\njava -jar target/*.jar generate --ollamaVersion 0.21.0\n```\n\nTo push the resulting images, log in to GHCR first:\n\n```bash\ndocker login ghcr.io -u \u003cyour-github-username\u003e\n# enter a GitHub personal access token with write:packages scope when prompted\ndocker push ghcr.io/dashaun/testcontainer-ollama-qwen2.5-coder_1.5b:0.21.0\ndocker push ghcr.io/dashaun/testcontainer-ollama-qwen2.5-coder_1.5b:latest\n```\n\n## Running tests\n\n```bash\nmvn test\n```\n\nThe tests verify that Docker is reachable and that an Ollama container can start and commit an image successfully.\n\n## GitHub Actions\n\nThe workflow (`.github/workflows/update-image.yml`) runs at 06:00 UTC daily. It:\n\n1. Fetches the latest semver tag from `ollama/ollama` on Docker Hub\n2. Compares it to the latest version published to GHCR\n3. Skips the build if already up to date\n4. Builds and pushes both the versioned and `:latest` tags if a new version is found\n\nYou can also trigger it manually from the Actions tab with an optional `ollama_version` input to force a specific version.\n\nNo secrets are required — authentication uses the built-in `GITHUB_TOKEN`.\n\n## Stack\n\n| Component | Version |\n|---|---|\n| Spring Boot | 3.5.14 |\n| Spring Shell | 3.4.2 |\n| Testcontainers | 2.0.5 |\n| Java | 17 (Liberica) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashaun%2Ftestcontainer-ollama-qwen2.5-coder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashaun%2Ftestcontainer-ollama-qwen2.5-coder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashaun%2Ftestcontainer-ollama-qwen2.5-coder/lists"}