Skip to content

Add sample database page to getting started docs#444

Open
EngCaioFonseca wants to merge 4 commits into
chaoss:mainfrom
EngCaioFonseca:readme_min_db
Open

Add sample database page to getting started docs#444
EngCaioFonseca wants to merge 4 commits into
chaoss:mainfrom
EngCaioFonseca:readme_min_db

Conversation

@EngCaioFonseca

@EngCaioFonseca EngCaioFonseca commented Jul 14, 2026

Copy link
Copy Markdown

Description

  • Please include a summary of the change.
    The PR introduces the readme doc explaining how the users would be able to use the minim viable DB we made available in CollectOSS.

This PR fixes #

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Generative AI disclosure

Please select one option:

  • This contribution was NOT assisted or created by Generative AI tools.
  • This contribution was assisted or created by Generative AI tools.

If AI tools were used, please provide details below:
- What tools were used? Claude
- How were these tools used? Draft.
- Did you review these outputs before submitting this PR? Yes.

@MoralCode MoralCode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

added some comments.

in addition to this feedback this cant merge until the commits are signed off per CHAOSS/LF policy. See CONTRIBUTING.md if you'd like details on this process

Comment on lines +13 to +36
Quick start with 8Knot
----------------------

1. In your 8Knot checkout, point 8Knot at the local database by setting these values in your ``.env``:

.. code:: shell

AUGUR_HOST=sample-collected-data
AUGUR_PORT=5432
AUGUR_DATABASE=sample_collected_data
AUGUR_USERNAME=sample_user
AUGUR_PASSWORD=sample_password
AUGUR_SCHEMA=data,augur_data

2. Start the stack from the top level of the 8Knot repository:

.. code:: shell

podman compose up --build

8Knot is at http://localhost:8080 and reads from the sample database. The
``sample-collected-data`` service pulls the image and starts instantly (the data
is baked in, so there is no import step).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it may make sense for this piece to be moved to the 8Knot readme where we can then have collectOSS link to 8knot (for 8knot specific instructions) and 8knot can link to collectOSS for general info about this database/data structure

that way the information is maintained as close to the thing it talks about as possible

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

id like to maybe replace this with the contents of the sample docker compose file

Comment on lines +60 to +67
Notes
-----

- **Self-contained** — no CollectOSS credentials, API keys, or dump files required.
- **Data only** — the image contains just the ``data`` schema. The operations
schema (user accounts, tokens, API keys) is deliberately **not** included.
- **Sample, not live** — the data is a fixed snapshot for local development and
demos, not a continuously updated instance.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This section seems unnecessary

Comment thread docs/source/getting-started/sample-database.rst Outdated
EngCaioFonseca and others added 3 commits July 15, 2026 21:14
Co-authored-by: Adrian Edwards <17362949+MoralCode@users.noreply.github.com>
Signed-off-by: Caio Fonseca <141309898+EngCaioFonseca@users.noreply.github.com>
@MoralCode MoralCode added the documentation Improvements or additions to documentation label Jul 16, 2026
We have a ready-to-use PostgreSQL database that acts as a structurally-correct sample dataset. This is a postgres container image pre-loaded with data collected by CollectOSS that can be used to help you get started quickly with your downstream project that relies on CollectOSS data, whether thats running `8Knot <https://github.com/oss-aspen/8Knot>`_, using jupyter notebooks for research, or building your own dashboard.

Image: ``ghcr.io/oss-aspen/sample-collected-data:latest``

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Using the image
---------------
The easiest way to use the image is to create a `docker-compose.yml` file in a new directory with the following contents:
```yaml
 services:
  sample-collected-data:
     image: ghcr.io/oss-aspen/sample-collected-data:latest
     ports:
       - "5433:5432"  # exposed on 5433 to avoid clashing with a local postgres
     environment:
       POSTGRES_DB: sample_collected_data
       POSTGRES_USER: sample_user
       POSTGRES_PASSWORD: sample_password
     healthcheck:
       test: ["CMD-SHELL", "pg_isready -U sample_user -d sample_collected_data"]
       interval: 5s
       timeout: 5s
       retries: 10
```
Once this file exists, running `docker compose up` from this directory will bring the database up and allow you to connect as explained in the next section.

Connecting directly (psql, DBeaver, notebooks)
----------------------------------------------

The database is also exposed on **host port 5433** (mapped from the container's

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
The database is also exposed on **host port 5433** (mapped from the container's
If you are using the compose file above, the database will be exposed on port 5433 on your machine (mapped from the container's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disclosed-ai documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants