Skip to content

Commit

Permalink
Merge pull request #56 from mit-submit/main
Browse files Browse the repository at this point in the history
Update Prod to Release to t3desk
  • Loading branch information
mdr223 authored Sep 25, 2023
2 parents 0445e52 + 71d034f commit 4712de3
Show file tree
Hide file tree
Showing 240 changed files with 47 additions and 43,863 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dev-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ jobs:
# stop any existing docker compose that's running
- name: Stop Docker Compose
run: |
ssh submit-dev 'bash -s' < ${{ github.workspace }}/deploy/dev-stop.sh
ssh submit-t3desk 'bash -s' < ${{ github.workspace }}/deploy/dev-stop.sh
# copy repository to machine
- name: Copy Repository
run: |
rsync -e ssh -r ${{ github.workspace}} --exclude .git/ --delete submit-dev:~/
rsync -e ssh -r ${{ github.workspace}}/* --exclude .git/ --delete submit-t3desk:~/A2rchi-dev/
# run deploy script
- name: Run Deploy Script
run: |
ssh submit-dev 'bash -s' < ${{ github.workspace }}/deploy/dev-install.sh
ssh submit-t3desk 'bash -s' < ${{ github.workspace }}/deploy/dev-install.sh
# clean up secret files
- name: Remove Secrets from Runner
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prod-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ jobs:
# stop any existing docker compose that's running
- name: Stop Docker Compose
run: |
ssh submit-prod 'bash -s' < ${{ github.workspace }}/deploy/prod-stop.sh
ssh submit-t3desk 'bash -s' < ${{ github.workspace }}/deploy/prod-stop.sh
# copy repository to machine
- name: Copy Repository
run: |
rsync -e ssh -r ${{ github.workspace}} --exclude .git/ --delete submit-prod:~/
rsync -e ssh -r ${{ github.workspace}}/* --exclude .git/ --delete submit-t3desk:~/A2rchi-prod/
# run deploy script
- name: Run Deploy Script
run: |
ssh submit-prod 'bash -s' < ${{ github.workspace }}/deploy/prod-install.sh
ssh submit-t3desk 'bash -s' < ${{ github.workspace }}/deploy/prod-install.sh
# clean up secret files
- name: Remove Secrets from Runner
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ key.py
!requirements.txt
*.html
*.ipynb
__pycache__
__pycache__
venv
*.DS_Store
*.egg-info
*sqlite_db
.vscode
2 changes: 1 addition & 1 deletion config/dev-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ utils:
use_HTTP_chromadb_client: True # recommended: True (use http client for the chromadb vectorstore?)
# use_HTTP_chromadb_client: False
vectordb_update_time: 10
chromadb_host: chromadb
chromadb_host: chromadb-dev
chromadb_port: 8000
collection_name: "dev_collection"
reset_collection: True # reset the entire collection each time it is accessed by a new data manager instance
Expand Down
2 changes: 1 addition & 1 deletion config/prod-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ utils:
use_HTTP_chromadb_client: True # recommended: True (use http client for the chromadb vectorstore?)
# use_HTTP_chromadb_client: False
vectordb_update_time: 10
chromadb_host: chromadb
chromadb_host: chromadb-prod
chromadb_port: 8000
collection_name: "prod_collection"
reset_collection: True # reset the entire collection each time it is accessed by a new data manager instance
Expand Down
4 changes: 0 additions & 4 deletions deploy/chat/Dockerfile-chat
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ COPY config config
COPY A2rchi A2rchi
RUN pip install --upgrade pip && pip install .

# manually install 0.4.12 of chroma without telemetry
COPY deploy/chroma/chroma deploy/chroma/chroma
RUN pip uninstall chromadb && cd deploy/chroma/chroma && pip install . && cd /root/A2rchi

CMD ["python", "-u", "A2rchi/bin/service_chat.py"]
10 changes: 0 additions & 10 deletions deploy/chroma/chroma/.dockerignore

This file was deleted.

43 changes: 0 additions & 43 deletions deploy/chroma/chroma/.github/ISSUE_TEMPLATE/bug_report.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions deploy/chroma/chroma/.github/ISSUE_TEMPLATE/feature_request.yaml

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions deploy/chroma/chroma/.github/actions/bandit-scan/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions deploy/chroma/chroma/.github/actions/bandit-scan/action.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions deploy/chroma/chroma/.github/actions/bandit-scan/entrypoint.sh

This file was deleted.

This file was deleted.

39 changes: 0 additions & 39 deletions deploy/chroma/chroma/.github/workflows/chroma-integration-test.yml

This file was deleted.

42 changes: 0 additions & 42 deletions deploy/chroma/chroma/.github/workflows/chroma-js-release.yml

This file was deleted.

Loading

0 comments on commit 4712de3

Please sign in to comment.