Skip to content

Commit 2768595

Browse files
committed
Add TODOs for Dockerization and Deployment in cmds.sh
- Introduced a series of TODO comments in cmds.sh outlining steps for Dockerizing both the backend and frontend applications. - Added tasks for deploying the applications in a VM, automating the Dockerization process, and utilizing GCP Container Registry. - Included plans for integrating Kubernetes or Cloud Run, as well as implementing Serverless Functions for CVE data retrieval and enrichment. - Enhanced the frontend terminal setup process with tmux commands for better session management.
1 parent 8ab9c5e commit 2768595

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

vuln-db-backend/app/cmds.sh

+24
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
#? Repo Terminal
2+
3+
# TODO 1: Dockerize the backend
4+
# TODO 2: Dockerize the frontend
5+
# TODO 3: Deploy in the VM
6+
# TODO 4: Automate the Dockerization in the cron job
7+
# TODO 5: Store in the GCP Container Registry
8+
# TODO 6: Deploy from the GCP Container Registry
9+
# TODO 7: Automate the deployment in the cron job
10+
# TODO 8: Consider using Kubernetes or Cloud Run and MongoDB Cloud Version
11+
# TODO 9: Add Serverless Function to get CVE Data from NVD
12+
# TODO 10: Add Serverless Function to enrich CVE Data (ChatGPT)
13+
# TODO 11: Add Script Function to get the cve fix commits from the GitHub API
14+
# TODO 12: Compare the the file diffs between the commits and the cve fix
15+
# TODO 13: Enrhic CVE Data with the commit diffs and the cve fix data from ChatGPT
16+
# TODO 14: Add the enriched cve data to the bucket and check for automation process of getting the enriched cve data to the backend and to the container and to the frontend
17+
218
# cd ~/Code/Private/CVE_DB/
319
cd ~/Code/CVE_DB/vuln-db-backend
420
git fetch origin && git reset --hard origin/master && git pull
@@ -39,6 +55,14 @@ pip install -r requirements.txt
3955
python -m app.main
4056
tmux detach
4157

58+
#* Frontend Terminal
59+
cd ~/Code/CVE_DB/vuln-db-frontend
60+
tmux new-session -d -s frontend
61+
tmux attach -t frontend
62+
npm install
63+
npm run dev
64+
tmux detach
65+
4266

4367

4468
# https://michaelcurrin.github.io/code-cookbook/recipes/artificial-intelligence/llm.html

0 commit comments

Comments
 (0)