Skip to content

Commit f8e7cef

Browse files
author
Vadym Mudryi
committed
minor fixes and doc improvements
1 parent 972ad08 commit f8e7cef

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

README.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ This repository is used to store infrastructure code for deploying OpenCRVS.
2727

2828
## Prerequisites
2929

30+
Hardware requirements:
31+
- 16G RAM
32+
3033
Ensure you have one of the following solutions installed on your laptop:
3134
- [**Recommended**]: Docker Desktop (with Kubernetes enabled): https://www.docker.com/products/docker-desktop/. Please check following:
3235
- Enable host networking
3336
- Enable Kubernetes
37+
- Ensure docker-desktop is configured to use at least 16G of RAM
3438
- MicroK8s: https://microk8s.io/
3539
- Minikube: https://minikube.sigs.k8s.io/docs/
3640

@@ -73,6 +77,14 @@ You need to clone the [opencrvs-core](https://github.com/opencrvs/opencrvs-core)
7377
8. Navigate to [http://localhost:10350/](http://localhost:10350/)
7478
9. Once all container images are up and running your environment will be available at https://opencrvs.localhost
7579

80+
81+
**NOTE:** On local environment you need manually access self signed certificate for the following URLs:
82+
- https://login.opencrvs.localhost/
83+
- https://gateway.opencrvs.localhost/ping
84+
- https://register.opencrvs.localhost/ping
85+
- https://countryconfig.opencrvs.localhost/ping
86+
87+
7688
---
7789

7890
## For OpenCRVS Country Config Developers
@@ -132,15 +144,20 @@ repositories/
132144
8. Navigate to [http://localhost:10350/](http://localhost:10350/)
133145
9. Once all container images are up and running your environment will be available at https://opencrvs.localhost
134146

147+
**NOTE:** On local environment you need manually access self signed certificate for the following URLs:
148+
- https://login.opencrvs.localhost/
149+
- https://gateway.opencrvs.localhost/ping
150+
- https://register.opencrvs.localhost/ping
151+
- https://countryconfig.opencrvs.localhost/ping
152+
135153
## Seed data
136154

137-
1. Navigate to file `kubernetes/opencrvs-services/values-dev.yaml` in opencrvs-core (or your country config) repository
138-
2. Change value `data_seeder.enabled` to `true`.
139-
3. Save changes
140-
4. New tilt resource `data-seeder` will be created, check [http://localhost:10350/](http://localhost:10350/)
141-
5. Make sure data-seeder job completed without issues.
142-
6. Change value `data_seeder.enabled` to `false`.
143-
7. Save changes
155+
1. Navigate to [http://localhost:10350/](http://localhost:10350/)
156+
2. Scroll to section `2.Data-tasks` and find resource `Reset database`
157+
3. Run resource using reload button
158+
159+
See screenshot for more information:
160+
![](doc/images/seed-data-on-local-env.png)
144161

145162
## Common issues
146163

charts/opencrvs-services/templates/user-mgnt-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ spec:
4848
value: http://documents.{{ .Release.Namespace }}.svc.cluster.local:9050
4949
- name: MONGO_URL
5050
value: mongodb://{{ .Values.mongodb_host }}/user-mgnt
51+
- name: COUNTRY_CONFIG_URL
52+
value: "https://countryconfig.{{ .Values.hostname }}"
5153
{{- include "render-env-vars" (dict "service_name" "userMgnt" "Values" .Values) }}
5254
ports:
5355
- containerPort: 3030
60.3 KB
Loading

0 commit comments

Comments
 (0)