Skip to content

Docker

The image ghcr.io/open-lakehouse/unitycatalog-rs has the server, the web UI and uc.

docker run -d --name uc -p 8080:8080 -v uc-data:/data \
  ghcr.io/open-lakehouse/unitycatalog-rs:0.0.2

Open http://localhost:8080 for the web UI. The catalog is in the volume uc-data.

Settings

Give settings as UC_<GROUP>_<KEY> environment variables. Settings lists them.

docker run -d --name uc -p 8080:8080 -v uc-data:/data \
  -e UC_DB_URL='postgresql://uc@postgres.example.com:5432/uc' \
  -e UC_DB_PASSWORD='<password>' \
  ghcr.io/open-lakehouse/unitycatalog-rs:0.0.2

Sign-in

Make a signing key and a secrets key, start the server with sign-in, and get a token of its admin user:

docker run --rm -v uc-data:/data ghcr.io/open-lakehouse/unitycatalog-rs:0.0.2 \
  keygen --output /data/signing-key.pem
docker run --rm -v uc-data:/data ghcr.io/open-lakehouse/unitycatalog-rs:0.0.2 \
  keygen --secrets --output /data/secrets-key.pem
docker run -d --name uc -p 8080:8080 -v uc-data:/data \
  -e UC_AUTH_ENABLED=true -e UC_AUTH_SIGNING_KEY_FILE=/data/signing-key.pem \
  -e UC_SECRETS_KEY_FILE=/data/secrets-key.pem \
  ghcr.io/open-lakehouse/unitycatalog-rs:0.0.2
export UC_CLI_TOKEN=$(docker exec uc uc-server token)

See Sign-in and authorization.

Docker Compose

compose.yaml in the repository runs the same server:

docker compose up