Skip to content

Commit

Permalink
Update Docker Compose and Kubernetes configurations, fix Vocab_Uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
aalonsolopez committed Jan 31, 2024
1 parent e1ae8de commit 792d004
Show file tree
Hide file tree
Showing 10 changed files with 648 additions and 39 deletions.
4 changes: 3 additions & 1 deletion base_sql_scripts/001_OMOP-DDL.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
--postgresql CDM DDL Specification for OMOP Common Data Model 5.4

CREATE SCHEMA IF NOT EXISTS omopSchema;

--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE omopSchema.person (
person_id integer NOT NULL,
Expand Down Expand Up @@ -442,7 +445,6 @@ CREATE TABLE omopSchema.concept_class (
concept_class_id varchar(20) NOT NULL,
concept_class_name varchar(255) NOT NULL,
concept_class_concept_id integer NOT NULL );
CREATE SCHEMA omopSchema;
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE omopSchema.concept_relationship (
concept_id_1 integer NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_DB=test-omop
- POSTGRES_DB=omopdb
volumes:
- db-data:/var/lib/postgresql/data
ports:
Expand Down
35 changes: 18 additions & 17 deletions kubernetes/002_OMOP-CDM-Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ spec:
app: omop-postgres
spec:
containers:
- name: omop-postgres
image: ghcr.io/idea4rc/omop-deploy:latest
imagePullPolicy: IfNotPresent
env:
- name: POSTGRES_USER
secretKeyRef:
name: omop-secrets
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: omop-secrets
key: POSTGRES_PASSWORD
- name: POSTGRES_DB
value: omopdb
ports:
- containerPort: 5432
- name: omop-postgres
image: ghcr.io/idea4rc/omop-deploy:latest
imagePullPolicy: IfNotPresent
env:
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: omop-secrets
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: omop-secrets
key: POSTGRES_PASSWORD
- name: POSTGRES_DB
value: omopdb
ports:
- containerPort: 5432
40 changes: 20 additions & 20 deletions kubernetes/004_OMOP-Vocab-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ spec:
template:
spec:
containers:
- name: populate-db
image: ghcr.io/idea4rc/omop-vocab-uploader:latest
imagePullPolicy: IfNotPresent
env:
- name: VOCAB_PG_HOST
value: omop-postgres-service
- name: VOCAB_PG_DATABASE
value: omopdb
- name: VOCAB_PG_USER
valueFrom:
secretKeyRef:
name: omop-secrets
key: POSTGRES_USER
- name: VOCAB_PG_PASSWORD
valueFrom:
secretKeyRef:
name: omop-secrets
key: POSTGRES_PASSWORD
- name: VOCAB_PG_SCHEMA
value: omopcdm
- name: populate-db
image: ghcr.io/idea4rc/omop-vocab-uploader:latest
imagePullPolicy: IfNotPresent
env:
- name: VOCAB_PG_HOST
value: omop-postgres-service
- name: VOCAB_PG_DATABASE
value: omopdb
- name: VOCAB_PG_USER
valueFrom:
secretKeyRef:
name: omop-secrets
key: POSTGRES_USER
- name: VOCAB_PG_PASSWORD
valueFrom:
secretKeyRef:
name: omop-secrets
key: POSTGRES_PASSWORD
- name: VOCAB_PG_SCHEMA
value: omopschema
restartPolicy: OnFailure
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 792d004

Please sign in to comment.