Skip to content

Commit

Permalink
updated documentation to give instructions on adding databases
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelimoisili committed Jul 5, 2023
1 parent 391a464 commit 1afe48c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ CHT sync has been specifically designed to work in both local development enviro

The local environment setup involves starting Logstash, PostgreSQL, PostgREST, DBT, and CouchDB. This configuration facilitates data synchronization, transformation, and storage for local development and testing. Fake data is generated for CouchDB. The required environment variables can be found in the `env.template` file, which should be customized accordingly for the specific deployment needs.

1. Provide the databases you want to sync in the `.env` file:

```
COUCHDB_DBS=<dbs-to-sync> # space sperated list of databases you want to sync e.g "medic medic_sentinel"
```

```sh
# starts: logstash, superset, postgres, postgrest, data-generator, couchdb and dbt
npm install
Expand All @@ -34,6 +40,8 @@ The gamma environment setup involves starting Logstash, PostgreSQL, PostgREST, a
# project wide: optional
COMPOSE_PROJECT_NAME=pipeline
COUCHDB_DBS=<dbs-to-sync> # space sperated list of databases you want to sync e.g "medic medic_sentinel"
# couchdb and logstash: required environment variables for 'gamma', 'prod' and 'local'
COUCHDB_PASSWORD=<your-couchdb-password>
COUCHDB_SECURE=false
Expand All @@ -56,6 +64,8 @@ The production environment setup involves starting Logstash, PostgREST, and DBT.
# project wide: optional
COMPOSE_PROJECT_NAME=pipeline
COUCHDB_DBS=<dbs-to-sync> # space sperated list of databases you want to sync e.g "medic medic_sentinel"
# postgrest and pogresql: required environment variables for 'gamma', prod and 'local'
POSTGRES_USER=<your-postgres-user>
POSTGRES_PASSWORD=<your-postgres-password>
Expand Down
2 changes: 1 addition & 1 deletion env.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CHT_PIPELINE_BRANCH_URL=https://github.com/medic/cht-pipeline.git#main
# couchdb and logstash: required environment variables for 'gamma', 'prod' and 'local'
COUCHDB_USER=test
COUCHDB_PASSWORD=test
COUCHDB_DBS="medic medic_sentinel"
COUCHDB_DBS="medic medic_sentinel" # space sperated list of databases you want to sync e.g "medic medic_sentinel"
COUCHDB_HOST=couchdb
COUCHDB_PORT=5984
COUCHDB_SECURE=false
Expand Down

0 comments on commit 1afe48c

Please sign in to comment.