Holds test data to fire up a dev instance of StatusDB (CouchDB).
A pre-built Docker image with CouchDB and seed data is available:
docker pull ghcr.io/scilifelab/statusdb_seed_data:latestdocker run -d \
-p 5984:5984 \
-e COUCHDB_USER=admin \
-e COUCHDB_PASSWORD=admin \
ghcr.io/scilifelab/statusdb_seed_data:latestCouchDB will be available at:
- API: http://localhost:5984
- Fauxton UI: http://localhost:5984/_utils
- Credentials:
admin/admin
The seed data is automatically loaded on first startup.
To persist data between container restarts:
docker run -d \
-p 5984:5984 \
-e COUCHDB_USER=admin \
-e COUCHDB_PASSWORD=admin \
-v couchdb-data:/opt/couchdb/data \
ghcr.io/scilifelab/statusdb_seed_data:latestThe easiest way to develop seed data is using the VS Code Dev Container:
- Install VS Code and the Dev Containers extension
- Open this repository in VS Code
- When prompted, click "Reopen in Container" (or run
Dev Containers: Reopen in Containerfrom the command palette) - VS Code will build and start CouchDB automatically
The seed/ directory contains JSON documents that are loaded into CouchDB on startup.
seed/
├── <database_name>/ # Creates a database and loads all JSON files into it
│ ├── doc1.json
│ └── doc2.json
└── *.json # Top-level JSON files are loaded into 'statusdb' database
Each JSON file should contain a single CouchDB document. If the document has an _id field, it will be used as the document ID. Otherwise, CouchDB will auto-generate an ID.
Example document (seed/example_project.json):
{
"_id": "project_001",
"type": "project",
"name": "Example Genomics Project",
"project_id": "P12345",
...
}docker build -t statusdb_seed_data .
docker run -p 5984:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=admin statusdb_seed_data- Add JSON files to the
seed/directory (or subdirectories for specific databases) - Commit and push to
mainbranch - GitHub Actions will automatically build and publish a new image
The genomics-status repository is configured to use this image in its dev container setup. When you open genomics-status in VS Code with Dev Containers, it will automatically pull this image and start CouchDB with the seed data.