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.2.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.2-py3-none-any.whl (95.8 kB view details)

Uploaded Python 3

File details

Details for the file dbnomics_docker-0.1.2.tar.gz.

File metadata

  • Download URL: dbnomics_docker-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7e61ecde9b0aaa995777d2ae348887cb4508108855f2fc2437a8dfc34b3f6b71
MD5 15f9b419db870f380f2fdf869a147e9c
BLAKE2b-256 3dcb7b1ae069eb99eaa54c5e5450dee0a8b5880c8a440c8dc6448ee0e9d98f28

See more details on using hashes here.

File details

Details for the file dbnomics_docker-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dbnomics_docker-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 95.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e8a02493b14b576e1cb15655b0dbcc62b19b01cc7d826eb65d536520c45d3ff
MD5 23e6a92832cda631e79bdfd0ccc0ac35
BLAKE2b-256 65ca2197ec383aa87baffa3e903190481331b6b251f5b1ec9a53121e040612d2

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