Skip to content

Commit

Permalink
Add pop. script manual trigger and better machine
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Jul 15, 2024
1 parent caf0e2f commit f768d4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions applications/visualizer/backend/populate-db.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ cd "${PARENT_PATH}"
case "$1" in
"compose")
ENV="visualizer"
echo "In postgresql db"
RAW_PATH="../../../raw-data/"
echo "In postgresql db in docker compose"
;;
"k8s")
ENV="visualizer"
RAW_PATH="./raw-data"
echo "In postgresql db in k8s"
;;
*)
echo "In local sqlite3 db"
RAW_PATH="../../../raw-data/"
;;
esac

CH_CURRENT_APP_NAME=${ENV} python manage.py migrate
CH_CURRENT_APP_NAME=${ENV} python manage.py populatedb ../../../raw-data/
CH_CURRENT_APP_NAME=${ENV} python manage.py populatedb ${RAW_PATH}
8 changes: 4 additions & 4 deletions applications/visualizer/deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ harness:
replicas: 1
resources:
limits:
cpu: '0.50'
memory: 500M
cpu: '1'
memory: 2Gi
requests:
cpu: '0.25'
memory: 32M
cpu: '0.75'
memory: 500M
livenessProbe: {path: /api/live}
readinessProbe: {path: /api/ready}
secured: false
Expand Down

0 comments on commit f768d4b

Please sign in to comment.