-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
3,302 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Local Docker Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Docker container | ||
run: | | ||
docker build -t bioragent . | ||
- name: Stop and remove existing Docker container if running | ||
run: | | ||
if [ "$(docker ps -aq -f name=bioragent)" ]; then | ||
docker stop bioragent || true | ||
docker rm bioragent || true | ||
fi | ||
- name: Run Docker container | ||
run: | | ||
docker run -d --name bioragent --restart unless-stopped -p 127.0.0.1:7865:7860 -e GEMIN_API_KEY=${{ secrets.GEMINI_API_KEY }} -e ELASTICSEARCH_HOST=${{ secrets.ELASTICSEARCH_HOST }} -e ELASTICSEARCH_PASSWORD=${{ secrets.ELASTICSEARCH_PASSWORD }} -e ELASTICSEARCH_USER=${{ secrets.ELASTICSEARCH_USER }} bioragent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM python:3.12.2-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY app/ . | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 7860 | ||
CMD ["python", "app.py"] |
Large diffs are not rendered by default.
Oops, something went wrong.
1,277 changes: 1,277 additions & 0 deletions
1,277
app/2024-03-26_19-24-27_claude-3-opus-20240229_11B1-10-Shot_Retrieval.csv
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.