Skip to content

Commit

Permalink
get everything running atleast
Browse files Browse the repository at this point in the history
  • Loading branch information
n1koo committed Sep 13, 2024
1 parent 79ff882 commit 69bdf21
Show file tree
Hide file tree
Showing 18 changed files with 49 additions and 40 deletions.
1 change: 1 addition & 0 deletions kubernetes/dependencies/templates/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ metadata:
app: minio
name: minio
spec:
clusterIP: None
ports:
- name: '3535'
port: 3535
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/opencrvs-services/templates/auth-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ spec:
- mountPath: /secrets/private-key.pem
name: private-key
subPath: private-key.pem
readinessProbe:
httpGet:
path: /ping
port: 4040
restartPolicy: Always
volumes:
- configMap:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/opencrvs-services/templates/client-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ spec:
ports:
- containerPort: 80
protocol: TCP
readinessProbe:
httpGet:
path: /ping
port: 80
restartPolicy: Always
4 changes: 2 additions & 2 deletions kubernetes/opencrvs-services/templates/config-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ spec:
- name: DOCUMENTS_URL
value: http://documents.opencrvs-services-dev.svc.cluster.local:9050 # FIXME: harcoded
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: GATEWAY_URL
value: http://gateway.opencrvs-services-dev.svc.cluster.local:7070/ # FIXME: harcoded
- name: HOST
value: 0.0.0.0
- name: METRICS_URL
value: http://metrics.opencrvs-services-dev.svc.cluster.local:1050 # FIXME: harcoded
- name: MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/application-config # FIXME: harcoded
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/application-config # FIXME: harcoded
- name: PORT
value: "2021"
- name: SEARCH_URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ spec:
- name: CONFIRM_REGISTRATION_URL
value: http://workflow:5050/confirm/registration
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/user-mgnt
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/user-mgnt
- name: NODE_ENV
value: development
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ spec:
containers:
- name: dashboards
image: "opencrvs/ocrvs-dashboards:{{ .Values.image.tag }}"
command: ["/bin/sh", "/run-dev.sh"] # FIXME: make generic and provide run-dev.sh as args, not overwriting entrypoint
restartPolicy: Always
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: CERT_PUBLIC_KEY_PATH
value: /secrets/public-key.pem
- name: MINIO_HOST
value: "minio.opencrvs-deps-dev.svc.cluster.local"
value: "minio-0.minio.opencrvs-deps-dev.svc.cluster.local"
- name: MINIO_PORT
value: "3535"
image: "opencrvs/ocrvs-documents:{{ .Values.image.tag }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
image: "opencrvs/ocrvs-gateway:{{ .Values.image.tag }}"
env:
- name: APPLICATION_CONFIG_URL
value: http://config:2021/
value: http://config.opencrvs-services-dev.svc.cluster.local:2021 # FIXME: harcoded/
- name: AUTH_URL
value: http://auth.opencrvs-services-dev.svc.cluster.local:4040 # FIXME: harcoded
- name: CERT_PUBLIC_KEY_PATH
Expand All @@ -48,7 +48,7 @@ spec:
- name: DOCUMENTS_URL
value: http://documents.opencrvs-services-dev.svc.cluster.local:9050 # FIXME: harcoded
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: METRICS_URL
value: http://metrics.opencrvs-services-dev.svc.cluster.local:1050 # FIXME: harcoded
- name: MINIO_BUCKET
Expand Down
13 changes: 6 additions & 7 deletions kubernetes/opencrvs-services/templates/metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,29 @@ spec:
- name: CERT_PUBLIC_KEY_PATH
value: /secrets/public-key.pem
- name: CONFIG_API_URL
value: http://config:2021
value: http://config.opencrvs-services-dev.svc.cluster.local:2021 # FIXME: harcoded
- name: COUNTRY_CONFIG_URL
value: http://countryconfig.opencrvs-services-dev.svc.cluster.local:3040 # FIXME: harcoded/
- name: DASHBOARD_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/performance
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/performance
- name: DOCUMENTS_URL
value: http://documents.opencrvs-services-dev.svc.cluster.local:9050 # FIXME: harcoded
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: HEARTH_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/hearth-dev
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/hearth-dev
- name: INFLUX_DB
value: ocrvs
- name: INFLUX_HOST
value: influxdb
- name: INFLUX_PORT
value: "8086"
- name: MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/metrics
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/metrics
- name: SEARCH_URL
value: http://search.opencrvs-deps-dev.svc.cluster.local:9090/ # FIXME: harcoded
- name: USER_MANAGEMENT_URL
value: http://user-mgnt:3030

value: http://user-mgnt.opencrvs-services-dev.svc.cluster.local:3030 # FIXME: harcoded
ports:
- containerPort: 1050
protocol: TCP
Expand Down
10 changes: 5 additions & 5 deletions kubernetes/opencrvs-services/templates/migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ spec:
image: "opencrvs/ocrvs-migration:{{ .Values.image.tag }}"
env:
- name: APPLICATION_CONFIG_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/application-config
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/application-config
- name: DASHBOARD_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/performance
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/performance
- name: ES_HOST
value: elasticsearch:9200
- name: HEARTH_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/hearth-dev
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/hearth-dev
- name: INFLUX_DB
value: ocrvs
- name: INFLUX_HOST
value: influxdb
- name: INFLUX_PORT
value: "8086"
- name: OPENHIM_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/openhim-dev
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/openhim-dev
- name: USER_MGNT_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/user-mgnt
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/user-mgnt
- name: WAIT_HOSTS
value: mongo1:27017,influxdb:8086,minio:9000,elasticsearch:9200
completions: 1 # Run the job once
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ spec:
- name: NODE_ENV
value: development
- name: OPENHIM_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/openhim-dev
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/openhim-dev
restartPolicy: Always
6 changes: 3 additions & 3 deletions kubernetes/opencrvs-services/templates/search-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ spec:
image: "opencrvs/ocrvs-search:{{ .Values.image.tag }}"
env:
- name: APPLICATION_CONFIG_URL
value: http://config:2021/
value: http://config.opencrvs-services-dev.svc.cluster.local:2021 # FIXME: harcoded/
- name: CERT_PUBLIC_KEY_PATH
value: /secrets/public-key.pem
- name: ES_HOST
value: elasticsearch:9200
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: HEARTH_MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/hearth-dev
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/hearth-dev
- name: NODE_ENV
value: development
- name: USER_MANAGEMENT_URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ spec:
image: "opencrvs/ocrvs-user-mgnt:{{ .Values.image.tag }}"
env:
- name: APPLICATION_CONFIG_URL
value: http://config:2021/
value: http://config.opencrvs-services-dev.svc.cluster.local:2021 # FIXME: harcoded/
- name: CERT_PUBLIC_KEY_PATH
value: /secrets/public-key.pem
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: HOST
value: 0.0.0.0
- name: METRICS_URL
value: http://metrics.opencrvs-services-dev.svc.cluster.local:1050 # FIXME: harcoded
- name: MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/user-mgnt
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/user-mgnt
- name: NOTIFICATION_SERVICE_URL
value: http://notification:2020/
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ spec:
- name: CHECK_INVALID_TOKEN
value: "true"
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: HOST
value: 0.0.0.0
- name: MONGO_URL
value: mongodb://mongodb.opencrvs-deps-dev.svc.cluster.local/webhooks
value: mongodb://mongodb-1.mongodb.opencrvs-deps-dev.svc.cluster.local/webhooks
- name: REDIS_HOST
value: redis.opencrvs-deps-dev.svc.cluster.local # FIXME: harcoded
- name: USER_MANAGEMENT_URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
image: "opencrvs/ocrvs-workflow:{{ .Values.image.tag }}"
env:
- name: APPLICATION_CONFIG_URL
value: http://config:2021/
value: http://config.opencrvs-services-dev.svc.cluster.local:2021 # FIXME: harcoded/
- name: CERT_PUBLIC_KEY_PATH
value: /secrets/public-key.pem
- name: COUNTRY
Expand All @@ -42,7 +42,7 @@ spec:
- name: DOCUMENTS_URL
value: http://documents.opencrvs-services-dev.svc.cluster.local:9050 # FIXME: harcoded
- name: FHIR_URL
value: http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
value: http://hearth-1.hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir # FIXME: harcoded
- name: METRICS_URL
value: http://metrics.opencrvs-services-dev.svc.cluster.local:1050 # FIXME: harcoded
- name: NODE_ENV
Expand Down
4 changes: 4 additions & 0 deletions packages/client/nginx/nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,8 @@ server {
location = /50x.html {
root /usr/share/nginx/html;
}

location /health {
return 200 'no content';
}
}
13 changes: 6 additions & 7 deletions packages/dashboards/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ RUN apk update && apk upgrade && apk add --no-cache gettext && apk add --no-cach

ADD . .

RUN ls -lha

#ADD run.sh /
#ADD initialize-database.sh /
#ADD update-database.sh /
#ADD environment-configuration.sql /
#ADD metabase.init.db.sql /
ADD run.sh /
ADD run-dev.sh /
ADD initialize-database.sh /
ADD update-database.sh /
ADD environment-configuration.sql /
ADD metabase.init.db.sql /

ENV METABASE_JAR=/app/metabase.jar
ENV MB_DB_INIT_SQL_FILE=/metabase.init.db.sql
Expand Down
3 changes: 0 additions & 3 deletions packages/gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@ RUN yarn build
RUN ls -lha /app/packages/gateway/build/dist/src
RUN ls -lha /app/packages/gateway/build/dist/src/graphql




CMD [ "yarn", "start:prod" ]

0 comments on commit 69bdf21

Please sign in to comment.