Skip to main content

CLI to run a local DBnomics stack for testing fetcher output

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbnomics_docker-0.1.1.dev1.tar.gz (80.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbnomics_docker-0.1.1.dev1-py3-none-any.whl (95.9 kB view details)

Uploaded Python 3

File details

Details for the file dbnomics_docker-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: dbnomics_docker-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 80.4 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for dbnomics_docker-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 1bcc3cf176f3686b628a88f6adb4e8569f09a0116d0af6c7398c4d4cb23bdc13
MD5 e701deffbaebeff9bf453d392cd8e5ca
BLAKE2b-256 e6cbfcf07edd26e48d7a33dd7888345365288b451d5a7a1252228d4597a6f9fd

See more details on using hashes here.

File details

Details for the file dbnomics_docker-0.1.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: dbnomics_docker-0.1.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 95.9 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for dbnomics_docker-0.1.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa74404dd95bb7de2129c7cd709e4e57e575619cc087c7b6df1ff1fb991d047d
MD5 643de6a78a75b7773f434f3dc004669f
BLAKE2b-256 b3ba4da82318dd270b24b9c493c73efcd4cb84d798b83f03d8f86b8bd088091a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page