Add dockerfile and docker-compose support#184
Add dockerfile and docker-compose support#184glahaye merged 16 commits intomicrosoft:mainfrom huangyingting:main
Conversation
huangyingting
left a comment
There was a problem hiding this comment.
it is not convient to import dev ssl certificate into another container, so we need to set Kestrel__Endpoints__Http__Url=http://0.0.0.0:8080
environment variable, the docker-compose file needs have .env file in webapi directory, here is the example for .env content
AIService__Endpoint=
AIService__Key=
Authorization__Type=
Authorization__AzureAd__TenantId=
Authorization__AzureAd__ClientId=
Authorization__AzureAd__Audience=
Authorization__AzureAd__Scopes=access_as_user
Kestrel__Endpoints__Http__Url=http://0.0.0.0:8080
MemoryStore__Type=qdrant
|
I had a bit of trouble getting the webapp and webapi talking together so I'll put my .env files here for others to use. \chat-copilot\webapi.env \chat-copilot\webapp.env The localhost and 0.0.0.0 were throwing me off. |
### Motivation and Context Adding docker support to deploy into kubernetes or run in local docker environment ### Description Adding docker support to deploy into kubernetes or run in local docker environment. A new folder "docker" created under root, to build images, from root directory, run `docker build -f docker/webapi/Dockerfile -t repo/chat-copilot-webapi` `docker build -f docker/webapi/Dockerfile -t repo/chat-copilot-webapp` A docker-compose file is also created to start whole environment, under docker directory, just run `docker-compose up`, it uses .env file to read environment variables, so make sure webapi and webapp directory has .env file the manifests to deply chat-copilot into kubernetes environment can be found here https://github.com/huangyingting/flux2-gitops/tree/main/apps/base/chat-copilot ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [Contribution Guidelines](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
### Motivation and Context Adding docker support to deploy into kubernetes or run in local docker environment ### Description Adding docker support to deploy into kubernetes or run in local docker environment. A new folder "docker" created under root, to build images, from root directory, run `docker build -f docker/webapi/Dockerfile -t repo/chat-copilot-webapi` `docker build -f docker/webapi/Dockerfile -t repo/chat-copilot-webapp` A docker-compose file is also created to start whole environment, under docker directory, just run `docker-compose up`, it uses .env file to read environment variables, so make sure webapi and webapp directory has .env file the manifests to deply chat-copilot into kubernetes environment can be found here https://github.com/huangyingting/flux2-gitops/tree/main/apps/base/chat-copilot ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [Contribution Guidelines](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
Motivation and Context
Adding docker support to deploy into kubernetes or run in local docker environment
Description
Adding docker support to deploy into kubernetes or run in local docker environment.
A new folder "docker" created under root, to build images, from root directory, run
docker build -f docker/webapi/Dockerfile -t repo/chat-copilot-webapidocker build -f docker/webapi/Dockerfile -t repo/chat-copilot-webappA docker-compose file is also created to start whole environment, under docker directory, just run
docker-compose up, it uses .env file to read environment variables, so make sure webapi and webapp directory has .env filethe manifests to deply chat-copilot into kubernetes environment can be found here
https://github.com/huangyingting/flux2-gitops/tree/main/apps/base/chat-copilot
Contribution Checklist