Skip to content

Commit 5eb1bf9

Browse files
committed
recover ci
1 parent 6c5f4e1 commit 5eb1bf9

34 files changed

+47
-74
lines changed

README.md

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,26 @@ This repository contains a collection of solutions that leverage Azure AI servic
2424
Use Makefile to run the project locally.
2525

2626
```shell
27-
# help
28-
make
27+
# Launch backend API server
28+
make backend
2929

30-
# install dependencies for development
31-
make install-deps-dev
30+
# Launch frontend app server
31+
make frontend
3232

33-
# run tests
34-
make test
35-
36-
# run CI tests
37-
make ci-test
33+
# Azure Functions
34+
make azure-functions-start
3835
```
3936

4037
### Docker development
4138

42-
```shell
43-
# build docker image
44-
make docker-build
39+
See the actual implementation in the [compose.yaml](./compose.yaml) file.
4540

46-
# run docker container
47-
make docker-run
41+
```shell
42+
# Launch backend API server
43+
docker compose up backend
4844

49-
# run CI tests in docker container
50-
make ci-test-docker
45+
# Launch frontend app server
46+
docker compose up frontend
5147
```
5248

5349
### Run local test
@@ -64,18 +60,19 @@ make test
6460

6561
## Deployment instructions
6662

67-
### Docker compose
63+
```shell
64+
# Deploy Azure resources via Bicep
65+
cd infra
66+
make deploy
67+
```
6868

69-
Docker compose is used to run the services locally.
70-
Refer to the following steps to run the services.
71-
See the actual implementation in the [compose.yaml](./compose.yaml) file.
69+
Azure Functions are deployed using the following commands.
7270

7371
```shell
74-
# Create environment files for each service
75-
cp ./settings/{NAME}.env.sample ./settings/{NAME}.env
76-
77-
# Build and run the services
78-
docker compose up
72+
# Deploy Azure Functions
73+
make azure-functions-deploy
74+
# Publish Azure Functions
75+
make azure-functions-publish
7976
```
8077

8178
### Push docker image to Docker Hub
@@ -86,18 +83,3 @@ To publish the docker image to Docker Hub via GitHub Actions, you need to set th
8683
gh secret set DOCKERHUB_USERNAME --body $DOCKERHUB_USERNAME
8784
gh secret set DOCKERHUB_TOKEN --body $DOCKERHUB_TOKEN
8885
```
89-
90-
### Deploy Azure Functions
91-
92-
To deploy the Azure Functions, run the following script.
93-
94-
```shell
95-
# Deploy the Azure Functions
96-
sh ./scripts/deploy-azure-functions.sh
97-
98-
# Destroy the Azure Functions
99-
sh ./scripts/destroy-azure-functions.sh
100-
```
101-
102-
- [scripts/deploy-azure-functions.sh](./scripts/deploy-azure-functions.sh): Deploy the Azure Functions using Azure CLI.
103-
- [scripts/destroy-azure-functions.sh](./scripts/destroy-azure-functions.sh): Destroy the Azure Functions using Azure CLI.

backend/internals/agent_search.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from internals.tools.yahoo_finance_tool import yahoo_finance_tool
1515
from langchain_core.messages import HumanMessage
1616
from langchain_openai import AzureChatOpenAI
17-
1817
from settings.agents import Settings
1918

2019
logger = getLogger(__name__)

backend/internals/azure_ai_document_intelligence.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from azure.ai.documentintelligence import DocumentIntelligenceClient
44
from azure.ai.documentintelligence.models import AnalyzeDocumentRequest, AnalyzeResult, ContentFormat
55
from azure.core.credentials import AzureKeyCredential
6-
76
from settings.azure_ai_document_intelligence import Settings
87

98
logger = getLogger(__name__)

backend/internals/azure_ai_speech.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from urllib.parse import urljoin
33

44
import requests
5-
65
from settings.azure_ai_speech import Settings
76

87
logger = getLogger(__name__)

backend/internals/azure_ai_vision.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from azure.ai.vision.imageanalysis import ImageAnalysisClient
44
from azure.ai.vision.imageanalysis.models import VisualFeatures
55
from azure.core.credentials import AzureKeyCredential
6-
76
from settings.azure_ai_vision import Settings
87

98
logger = getLogger(__name__)

backend/internals/azure_cosmos_db.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from azure.cosmos import CosmosClient, PartitionKey
55
from azure.cosmos.container import ContainerProxy
66
from azure.cosmos.database import DatabaseProxy
7-
87
from settings.azure_cosmos_db import Settings
98

109
logger = getLogger(__name__)

backend/internals/azure_event_grid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from azure.core.credentials import AzureKeyCredential
44
from azure.eventgrid import EventGridEvent, EventGridPublisherClient
5-
65
from settings.azure_event_grid import Settings
76

87
logger = getLogger(__name__)

backend/internals/azure_iot_hub.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from azure.iot.device.aio import IoTHubDeviceClient
44
from azure.iot.hub import IoTHubRegistryManager
55
from azure.iot.hub.models import CloudToDeviceMethod, CloudToDeviceMethodResult
6-
76
from settings.azure_iot_hub import Settings
87

98
logger = getLogger(__name__)

backend/internals/azure_openai.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from logging import getLogger
44

55
from openai import AzureOpenAI
6-
76
from settings.azure_openai import Settings
87

98
logger = getLogger(__name__)

backend/internals/azure_openai_langchain.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from langchain.prompts import ChatPromptTemplate, HumanMessagePromptTemplate
66
from langchain_core.messages import HumanMessage, SystemMessage
77
from langchain_openai import AzureChatOpenAI
8-
98
from settings.azure_openai import Settings
109

1110
logger = getLogger(__name__)

0 commit comments

Comments
 (0)