Skip to main content

DBnomics Docker

Run a local DBnomics stack to test fetcher output. One command from your fetcher directory:

uvx dbnomics-docker up

Installation

This project requires Docker and Docker Compose to be installed on your machine.

Podman is also supported (cf section below).

It is recommended to install uv to run the commands with uvx.

Quick start

# In your fetcher directory, after producing converted-data/:
cd abc-fetcher
uv run convert.py source-data converted-data  # produces converted-data/
uvx dbnomics-docker up                        # starts stack + indexes your data

Services will be available at:

How it works

uvx dbnomics-docker up does the following:

  1. Creates a ./dbnomics-docker/ project directory with the compose files and Solr configuration
  2. Generates a compose.override.yml that mounts your fetcher's converted-data/ directory as /converted-data/{slug}-json-data inside the API container
  3. Starts the Docker Compose stack (docker compose up -d --remove-orphans)
  4. Waits for Solr to be ready
  5. Indexes your provider's data into Solr

You can inspect the project directory at ./dbnomics-docker/ and use docker compose commands directly from it.

Commands

uvx dbnomics-docker create   # create the ./dbnomics-docker/ project (up does it automatically)
uvx dbnomics-docker up       # start stack + index converted-data/
uvx dbnomics-docker down     # stop the stack (keeps the project directory)
uvx dbnomics-docker delete   # stop + delete the project directory
uvx dbnomics-docker index    # re-index after data changes
uvx dbnomics-docker ps [-a]  # list containers
uvx dbnomics-docker logs [-f api]  # show logs

Using Podman

export COMPOSE_CMD=podman-compose
uvx dbnomics-docker up

Troubleshooting

  • Ports already in use — if :3000, :5000 or :8983 are taken, stop the conflicting process or the previous stack with uvx dbnomics-docker down.
  • Provider not found — the converted-data/ directory must exist with your fetcher's output before running up.

Metadata

Release files for dbnomics-docker 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbnomics-docker 0.1.2
File Size Uploaded
dbnomics_docker-0.1.2.tar.gz 80.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbnomics-docker 0.1.2
File Interpreter ABI Platform
dbnomics_docker-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 176.2 kB

Release files / dbnomics_docker-0.1.2.tar.gz

Download URL dbnomics_docker-0.1.2.tar.gz
Size 80.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7e61ecde9b0aaa995777d2ae348887cb4508108855f2fc2437a8dfc34b3f6b71
BLAKE2b-256 checksum
How to use checksums
3dcb7b1ae069eb99eaa54c5e5450dee0a8b5880c8a440c8dc6448ee0e9d98f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / dbnomics_docker-0.1.2-py3-none-any.whl

Download URL dbnomics_docker-0.1.2-py3-none-any.whl
Size 95.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e8a02493b14b576e1cb15655b0dbcc62b19b01cc7d826eb65d536520c45d3ff
BLAKE2b-256 checksum
How to use checksums
65ca2197ec383aa87baffa3e903190481331b6b251f5b1ec9a53121e040612d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page