Skip to content

Update DMR integration to new Compose integration#13

Merged
ericcurtin merged 3 commits intomainfrom
update-compose-integration
Oct 9, 2025
Merged

Update DMR integration to new Compose integration#13
ericcurtin merged 3 commits intomainfrom
update-compose-integration

Conversation

@kiview
Copy link
Member

@kiview kiview commented Aug 15, 2025

Uses the new DMR Compose integration.
Also add a GHA workflow to act as a smoke test and demonstrate DMR usage on GHA.

Fixes #7
Fixes #11

kiview and others added 2 commits August 15, 2025 13:53
…CI smoke tests

- Remove run.sh script and .env file
- Update README.md to use Docker Compose directly
- Replace root docker-compose.yml with include directive
- Add individual docker-compose.yml files for each service
- Configure consistent port mapping (8080 internal, 8080-8083 external)
- Update all services to use LLAMA_URL/LLAMA_MODEL env vars only
- Add health endpoint to Node.js service
- Add GitHub Actions workflow with Docker Model Plugin integration
- Remove dotenv dependency from Node.js project

BREAKING CHANGE: services now require Docker Model Runner instead of .env file

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Combine service startup and testing into single step to keep processes alive
- Remove redundant environment variables from workflow (use Compose file config)
- Wait for health check before running tests in same execution context
@kiview kiview requested a review from Copilot August 15, 2025 12:19

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kiview kiview requested a review from Copilot August 15, 2025 12:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the GenAI applications to use the new Docker Model Runner (DMR) Compose integration, replacing the previous manual environment variable configuration. The update simplifies deployment by leveraging DMR's automatic service discovery and model management capabilities.

  • Replaces legacy LLM_BASE_URL and LLM_MODEL_NAME environment variables with DMR-injected LLAMA_URL and LLAMA_MODEL
  • Adds individual Docker Compose files for each service with DMR model configuration
  • Includes a GitHub Actions workflow for smoke testing and DMR demonstration

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
rust-genai/src/config.rs Updates config to prioritize DMR variables with legacy fallback
rust-genai/docker-compose.yaml Adds DMR model configuration and updates port mapping
run.sh Removes legacy Docker model pull script
py-genai/docker-compose.yml New DMR-enabled compose file for Python service
py-genai/app.py Updates to use DMR environment variables
node-genai/package.json Removes dotenv dependency (no longer needed)
node-genai/docker-compose.yml New DMR-enabled compose file for Node.js service
node-genai/app.js Updates to use DMR variables and removes env file logic
go-genai/main.go Updates configuration loading to use DMR variables
go-genai/docker-compose.yml New DMR-enabled compose file for Go service
docker-compose.yml Simplifies to include individual service compose files
README.md Updates setup instructions for new compose structure
.github/workflows/smoke-tests.yml Adds comprehensive smoke testing workflow
.env Removes legacy environment configuration file

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@kiview kiview requested a review from ilopezluna August 22, 2025 13:45
@ericcurtin ericcurtin merged commit 01cb89a into main Oct 9, 2025
4 checks passed
@ericcurtin ericcurtin deleted the update-compose-integration branch October 9, 2025 08:41
- "8082:8080"
environment:
- PORT=8080
x-genai-models:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the x-genai- prefix?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol no clue TBH, I did this some time ago and I guess Claude came up with it, or maybe back then it was even needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect URLs Update all example projects to use the new Compose integration

4 participants