Skip to content

Commit

Permalink
feat: k8s jobs to import everything
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Prodromou <[email protected]>
  • Loading branch information
evanp committed Mar 27, 2024
1 parent 8b5ba0e commit 832fee2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions k8s/cc-global-api-import-everything.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: batch/v1
kind: Job
metadata:
generateName: cc-global-api-import-everything-
spec:
ttlSecondsAfterFinished: 86400
template:
spec:
restartPolicy: OnFailure
containers:
- name: cc-global-api
image: ghcr.io/open-earth-foundation/citycatalyst-global-api:latest
env:
- name: CC_GLOBAL_API_DB_HOST
value: "cc-global-api-db"
- name: CC_GLOBAL_API_DB_NAME
value: "ccglobal"
- name: CC_GLOBAL_API_DB_USER
value: "ccglobal"
- name: CC_GLOBAL_API_DB_PASSWORD
value: "ccglobal"
- name: CC_GLOBAL_API_BASE
value: "https://openclimate.openearth.dev"
command: ["/usr/bin/bash", "./import_everything.sh"]
24 changes: 24 additions & 0 deletions k8s/test/cc-test-global-api-import-everything.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: batch/v1
kind: Job
metadata:
generateName: cc-test-global-api-import-everything-
spec:
ttlSecondsAfterFinished: 86400
template:
spec:
restartPolicy: OnFailure
containers:
- name: cc-test-global-api
image: ghcr.io/open-earth-foundation/citycatalyst-global-api:latest
env:
- name: CC_GLOBAL_API_DB_HOST
value: "cc-global-api-db"
- name: CC_GLOBAL_API_DB_NAME
value: "ccglobaltest"
- name: CC_GLOBAL_API_DB_USER
value: "ccglobaltest"
- name: CC_GLOBAL_API_DB_PASSWORD
value: "ccglobaltest"
- name: CC_GLOBAL_API_BASE
value: "https://ccglobal-test.openearth.dev"
command: ["/usr/bin/bash", "./import_everything.sh"]

0 comments on commit 832fee2

Please sign in to comment.