Skip to content

Add Terraform Configuration for Azure Container Apps Deployment #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented May 20, 2025

This PR adds Terraform configuration for deploying the Codemotion MCP Server application to Azure Container Apps as requested. The implementation includes:

Features Added

  • Resource Group: Creates an Azure Resource Group to contain all deployment resources
  • Azure Container Registry: Sets up ACR to store Docker images for the application
  • Container Apps Environment: Configures the runtime environment with Log Analytics integration
  • Application Deployment:
    • Deploys the MCP Server as a Container App with appropriate environment variables
    • Sets up Qdrant as a separate Container App for vector search functionality
    • Establishes internal networking between the services

Implementation Details

  • Created variables.tf with configurable parameters for the deployment
  • Created main.tf with Azure provider setup and resource group configuration
  • Added acr.tf for Container Registry setup
  • Implemented container_apps.tf for Container Apps Environment and application deployment
  • Added Dockerfile for containerizing the MCP server application
  • Created GitHub Actions workflow for automated CI/CD
  • Added deploy.sh script for simplified manual deployment
  • Created comprehensive documentation in README.md

Usage

Users can deploy the application using any of these methods:

  1. Terraform CLI: Run commands directly as described in the README
  2. GitHub Actions: Use the provided workflow for automated deployment on push to main
  3. Deploy Script: Use the included deploy.sh script for guided deployment

Environment Variables

Updated the MCP server to use environment variables for Qdrant connection, with default fallbacks for backward compatibility.

Fixes #1.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.fwupd.org
    • Triggering command: /usr/bin/fwupdmgr refresh (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] 🚀 Request: Terraform code to deploy this app on Azure using Azure Container Apps ☁️ Add Terraform Configuration for Azure Container Apps Deployment May 20, 2025
@Copilot Copilot AI requested a review from 0GiS0 May 20, 2025 11:50
Copilot finished work on behalf of 0GiS0 May 20, 2025 11:50
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.

🚀 Request: Terraform code to deploy this app on Azure using Azure Container Apps ☁️
2 participants