Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasecchig committed Sep 18, 2024
1 parent dcc0dd8 commit 932c4e8
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions gemini/sample-apps/conversational-genai-app-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ This template covers all aspects of Generative AI app development, from prototyp
| Description | Visualization |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| The template includes a production-ready FastAPI server with real-time chat interface, event streaming, auto-generated docs. Designed for scalability and easy integration with monitoring tools. | ![FastAPI docs](images/fastapi_docs.png) |
| ![FastAPI docs](images/code.png) |

</details>

Expand Down Expand Up @@ -138,7 +137,7 @@ For full command options and usage, refer to the [Makefile](Makefile).

## Deployment

**Dev Environment**
### Dev Environment

You can test deployment towards a Dev Environment using the following command:

Expand All @@ -149,27 +148,29 @@ gcloud run deploy conversational-app-sample --source . --project YOUR_DEV_PROJEC
The repository includes a Terraform configuration for setup of the Dev Google Cloud project.
See [deployment/README.md](deployment/README.md) for instructions.

**Production Deployment with Terraform:**
### Production Deployment with Terraform

![Deployment Workflow](images/deployment_workflow.png)

**Quick Start:**

1. Enable required APIs in the CI/CD project.

```bash
gcloud config set project YOUR_CI_CD_PROJECT_ID
gcloud services enable serviceusage.googleapis.com cloudresourcemanager.googleapis.com cloudbuild.googleapis.com secretmanager.googleapis.com
```

2. Create a Git repository (GitHub, GitLab, Bitbucket).
3. Connect to Cloud Build following [Cloud Build Repository Setup](https://cloud.google.com/build/docs/repositories#whats_next).
4. Configure [`deployment/terraform/vars/env.tfvars`](deployment/terraform/vars/env.tfvars) with your project details.
5. Deploy infrastructure:

```bash
cd deployment/terraform
terraform init
terraform apply --var-file vars/env.tfvars
```
```bash
cd deployment/terraform
terraform init
terraform apply --var-file vars/env.tfvars
```

6. Perform a commit and push to the repository to see the CI/CD pipelines in action!

Expand Down

0 comments on commit 932c4e8

Please sign in to comment.