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:
- Website: http://localhost:3000/{slug}
- API: http://localhost:5000/providers/{slug}
- Solr: http://localhost:8983
How it works
uvx dbnomics-docker up does the following:
- Creates a
./dbnomics-docker/project directory with the compose files and Solr configuration - Generates a
compose.override.ymlthat mounts your fetcher'sconverted-data/directory as/converted-data/{slug}-json-datainside the API container - Starts the Docker Compose stack (
docker compose up -d --remove-orphans) - Waits for Solr to be ready
- 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,:5000or:8983are taken, stop the conflicting process or the previous stack withuvx dbnomics-docker down. - Provider not found — the
converted-data/directory must exist with your fetcher's output before runningup.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e61ecde9b0aaa995777d2ae348887cb4508108855f2fc2437a8dfc34b3f6b71
|
|
| MD5 |
15f9b419db870f380f2fdf869a147e9c
|
|
| BLAKE2b-256 |
3dcb7b1ae069eb99eaa54c5e5450dee0a8b5880c8a440c8dc6448ee0e9d98f28
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e8a02493b14b576e1cb15655b0dbcc62b19b01cc7d826eb65d536520c45d3ff
|
|
| MD5 |
23e6a92832cda631e79bdfd0ccc0ac35
|
|
| BLAKE2b-256 |
65ca2197ec383aa87baffa3e903190481331b6b251f5b1ec9a53121e040612d2
|