Procedures and docs for developing the data portal
Install Rancher Desktop
After Rancher Desktop is installed, users will have access to these supporting utilities:
- Helm
- kubectl
- nerdctl
- Moby
- Docker Compose
Once rancher is installed.
- Clone the repository
- Navigate to the gen3-helm/helm/gen3 directory and run
helm dependency update
- Navigate to the back to the gen3-helm directory and create your values.yaml file. See the Sample values.yaml section for a minimal example.
- Run
helm install --namespace gen3 gen3 ./helm/gen3 -f ../helm-local/values.yaml
(adjusting the location of your local values). - Bring up https://localhost. You may need an incognito window to accept the cert.
Use the following as a template for your values.yaml file for a minimum deployment of gen3 using these helm charts.
global:
hostname: localhost
dictionaryUrl: https://raw.githubusercontent.com/NIEHS/pcor_gen3_artifacts/feature/local-portal/custom_configs/schema.json
fence:
FENCE_CONFIG:
MOCK_AUTH: true
# Selective deployments: All service helm charts are sub-charts of the gen3 chart (which acts as an umbrella chart) To enable or disable a service you can add this pattern to your values.yaml
guppy:
enabled: false
hatchery:
enabled: false
Once data is loaded, the ETL job needs to be started (and guppy restarted). See (https://github.com/NIEHS/gen3-helm/blob/master/docs/etl.md)
This repo will hold scripts and tools that help with the development workflow.
- pull_containers.sh is a script that can will pull the relevant docker images, faster than letting Helm do it
- local_portal.py is a utility script for running data_portal locally for gitops development and for building the custom container. This is a work in progres, check the comments in that script for usage