-
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
12 changed files
with
505 additions
and
43 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 |
---|---|---|
|
@@ -11,6 +11,8 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Copy files using SCP | ||
uses: appleboy/[email protected] | ||
|
@@ -22,7 +24,7 @@ jobs: | |
target: "/projects/pankb_web/django_project" | ||
|
||
- name: Create the .env file and (re-)start containers over SSH | ||
uses: appleboy/ssh-action@v0.1.7 | ||
uses: appleboy/ssh-action@v1.2.0 | ||
with: | ||
host: ${{ secrets.PANKB_PREPROD_HOST }} | ||
username: ${{ secrets.PANKB_PREPROD_SSH_USERNAME }} | ||
|
@@ -59,6 +61,6 @@ jobs: | |
echo "## URL address of the separately deployed AI Assistant Web Application" >> .env | ||
echo AI_ASSISTANT_APP_URL="${{vars.PANKB_PREPROD_AI_ASSISTANT_APP_URL}}" >> .env | ||
cat .env | ||
docker compose down | ||
docker compose up -d --build --force-recreate --remove-orphans | ||
docker compose --profile dev down | ||
docker compose --profile dev up -d --build --force-recreate --remove-orphans | ||
docker system prune --all --force |
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 |
---|---|---|
|
@@ -11,6 +11,8 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Copy files using SCP | ||
uses: appleboy/[email protected] | ||
|
@@ -22,7 +24,7 @@ jobs: | |
target: "/projects/pankb_web/django_project" | ||
|
||
- name: Create the .env file and (re-)start containers over SSH | ||
uses: appleboy/ssh-action@v0.1.7 | ||
uses: appleboy/ssh-action@v1.2.0 | ||
with: | ||
host: ${{ secrets.PANKB_PROD_HOST }} | ||
username: ${{ secrets.PANKB_PROD_SSH_USERNAME }} | ||
|
@@ -59,6 +61,6 @@ jobs: | |
echo "## URL address of the separately deployed AI Assistant Web Application" >> .env | ||
echo AI_ASSISTANT_APP_URL="${{vars.PANKB_PROD_AI_ASSISTANT_APP_URL}}" >> .env | ||
cat .env | ||
docker compose down | ||
docker compose up -d --build --force-recreate --remove-orphans | ||
docker compose --profile prod down | ||
docker compose --profile prod up -d --build --force-recreate --remove-orphans | ||
docker system prune --all --force |
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 |
---|---|---|
|
@@ -2,11 +2,12 @@ | |
<b>The dynamic Python-based version of the website. The Django framework is used as the back-end. Data about organisms, genes, genomes, locus_tags and KEGG pathways are stored in a database (in a cloud-based Azure Cosmos DB for MongoDB). The Microsoft Azure Blob Storage is still used as a data lake to store static unstructured or semi-structured data, e.g., plots, bibliome and phylogenetic trees (i.e., data that are not used by search or any other scripts generating dynamic content).</b> | ||
|
||
## Contributors | ||
- Front-end, analytics, LLM, data processing via a bioinformatics pipeline: Pascal A. Pieters, [email protected]; Binhuan Sun, [email protected] | ||
- Back-end, ETL pipeline, the website and vector databases, CI/CD pipeline, the github repo maintenance, versioning and backup systems, infrastructure, DevOps: Pascal A. Pieters, [email protected] | ||
- Front-end, analytics, LLM, data processing via a bioinformatics pipeline: Binhuan Sun (v1.0.0), Pascal A. Pieters (>=v2.0.0) | ||
- Back-end, ETL pipeline, the website and vector databases, CI/CD pipeline, the github repo maintenance, versioning and backup systems, infrastructure, DevOps: Liubov Pashkova (v2.0.0) Pascal A. Pieters (>=v3.0.0) | ||
|
||
For more info, contact Pascal A. Pieters, [email protected] | ||
## Server Configuration | ||
Tested on Linux Ubuntu 20.04 (may need tweaks for other systems). | ||
Tested on Linux Ubuntu 20.04 and 24.04 (may need tweaks for other systems). | ||
|
||
Min hardware requirements solely for the PanKB website deployment (excl. the PanKB DB, ETL and AI Assistant app): | ||
- 4GB RAM | ||
|
@@ -132,4 +133,4 @@ CONTAINER ID IMAGE COMMAND CREATED | |
6523c2afddd3 pankb_nginx:latest "/docker-entrypoint.…" About an hour ago Up About an hour 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp pankb-nginx | ||
c3bbd55e070d pankb_llm:latest "streamlit run strea…" 2 hours ago Up 2 hours 0.0.0.0:8501->8501/tcp, :::8501->8501/tcp pankb-llm | ||
``` | ||
After the Github Actions deployment job has successfully run, the web-application must be available at <a href="pankb.org" target="_blank">pankb.org</a>. | ||
After the Github Actions deployment job has successfully run, the web-application must be available at <a href="pankb.org" target="_blank">pankb.org</a>. |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.