Skip to content

Enhancement: Generalise container env for agent #395

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

raflFaisal
Copy link

@raflFaisal raflFaisal commented Apr 25, 2025

This PR introduces a flexible and extensible deployment interface for the adk deploy command to support multiple cloud providers (e.g., GCP, AWS, Kubernetes, etc.) and local Docker environments.

This proposed changes improves the adk deploy interface to be more flexible, and scalable, enabling easier integration with various cloud environments and future cloud provider support. For more details please refer this discussion

Key Changes:

  • Generalised Dockerfile:
    Removed provider-specific hard-coded variables.

  • Introduced two options for injecting environment variables:
    (1) Using .env files for local development.
    (2)Passing environment variables directly via the adk deploy command for production environments.

  • Modular Deployment Interface:
    (1) Introduced --cloud-provider to specify the target platform (default: gcp).
    (2) Introduced --provider-args for provider-specific parameters (e.g., aws-region, project).
    (3) Implemented cloud-specific deployers for each platform (e.g., GCPDeployer, AWSDeployer).

  • Used a factory pattern to route deployment logic based on the cloud provider.
    Simplified deployment commands with clear, flexible syntax for local, GCP (AWS, k8s and other cloud providers in future)
    Readme.md file is updated with usage instructions

  • What Will Not Be Supported:
    (1) Non-containerized deployments (e.g., serverless functions).
    (2) CI/CD integration.
    (3) Credential management (assumes provider CLIs are pre-configured).

Copy link

google-cla bot commented Apr 25, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@raflFaisal raflFaisal force-pushed the raflFaisal/generaliseContainerEnvForAgent branch from 0b66d00 to b7dfe64 Compare April 25, 2025 22:13
@raflFaisal
Copy link
Author

Tagging @hangfei !

@raflFaisal
Copy link
Author

raflFaisal commented Apr 29, 2025

Hi @hangfei and maintainers! 👋 Just a gentle reminder — this PR addresses Issue #184 and is ready for review.
Please let me know if there’s anything I should update. Thanks a lot for your time and consideration!

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.

1 participant