Skip to content

Commit

Permalink
add init harvesting logic db section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-bryson committed Feb 28, 2024
1 parent 676daf3 commit 3f28726
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ This project is using `poetry` to manage this project. Install [here](https://py

Once installed, `poetry install` installs dependencies into a local virtual environment.

### Harvesting Logic Database

A database service is required for use on cloud.gov.

In a given Cloud Foundry `space`, a db can be created with `cf create-service <service offering> <plan> <service instance>`. In dev, for example, the db was created with `cf create-service aws-rds micro-psql harvesting-logic-db`. Creating databases for the other spaces should follow the same pattern, though the size may need to be adjusted (see available AWS RDS service offerings with `cf marketplace -e aws-rds`).

Any created service needs to be bound to an app with `cf bind-service <app> <service>`. With the above example, the db can be bound with `cf bind-service harvesting-logic harvesting-logic-db`.

Accessing the service can be done with service keys. They can be created with `cf create-service-keys`, listed with `cf service-keys`, and shown with `cf service-key <service-key-name>`.

## Testing

### CKAN load testing
Expand Down

1 comment on commit 3f28726

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
harvester
   __init__.py10100% 
   ckan_utils.py4222 95%
   harvest.py4116767 84%
   utils.py4377 84%
TOTAL4977685% 

Tests Skipped Failures Errors Time
22 0 💤 0 ❌ 0 🔥 1.946s ⏱️

Please sign in to comment.