kevinjqliu / iceberg-rest-catalog

Pythonic Iceberg REST Catalog
67 stars 12 forks source link

iceberg-rest-catalog

Pythonic Iceberg REST Catalog

Build a docker image

Base - Supports SQLite backend only.

docker build . \
--target=prod \
--build-arg BASE_IMAGE=python:3.11-slim \
-t iceberg-rest-base

Postgres - Supports Postgres and SQLite backends.

docker build . \
--target=prod \
--build-arg EXTRAS=postgres \
--build-arg BASE_IMAGE=python:3.11-slim \
-t iceberg-rest-postgres

MySQL - Supports MySQL and SQLite backends.

docker build . \
--target=prod \
--build-arg EXTRAS=mysql \
--build-arg BASE_IMAGE=python:3.11 \
-t iceberg-rest-mysql

Full - Supports SQLite, Postgres, and MySQL backends.

docker build . \
--target=prod \
--build-arg EXTRAS='postgres mysql' \
--build-arg BASE_IMAGE=python:3.11 \
-t iceberg-rest-full

Dev - Supports SQLite, postgres, and MySQL backends. Includes all extra python packages and testing utilities.

docker build . \
--target=dev \
--build-arg BASE_IMAGE=python:3.11 \
-t iceberg-rest-dev

Run the REST Catalog API server

docker run --rm -it -p 8000:8000 iceberg-rest-[base/postgres/mysql/full/dev]

Go to http://127.0.0.1:8000/docs to inspect the OpenAPI documentation.

Notes