1. Images & Charts
  2. apache-polaris-admin-tool
apache-polaris-admin-tool

apache-polaris-admin-tool

Apps
Updated 12 hours ago

Apache-Polaris-Admin-Tool Overview

Secure your stack with a hardened Apache-Polaris-Admin-Tool image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.


Apache-Polaris-Admin-Tool is the administrative utility for Apache Polaris, a fully-featured catalog for Apache Iceberg. It performs critical metastore lifecycle operations such as bootstrapping realms and root principal credentials, purging realms and their associated data, and running NoSQL maintenance tasks. The tool must be run with the same version as the Polaris server it manages.


Try It Out

For a quick test, print the help menu:

docker run --rm \
reg.mini.dev/apache-polaris-admin-tool --help

Bootstrap a Realm Against a Postgres Metastore

The admin tool needs a metastore database to bootstrap so we'll use Postgres. Create a shared network:

docker network create polaris-net

Run a Postgres container on the shared network:

docker run -d --name postgres --network polaris-net \
  -e POSTGRES_PASSWORD=Minimus! \
  -e POSTGRES_DB=polaris \
  reg.mini.dev/postgres

Bootstrap a realm and root principal credentials against the Postgres metastore:

docker run --rm --network polaris-net \
  --env="polaris.persistence.type=relational-jdbc" \
  --env="quarkus.datasource.username=postgres" \
  --env="quarkus.datasource.password=Minimus!" \
  --env="quarkus.datasource.jdbc.url=jdbc:postgresql://postgres:5432/polaris" \
  reg.mini.dev/apache-polaris-admin-tool bootstrap -r polaris -c polaris,admin,admin

You should see a confirmation:

Realm 'polaris' successfully bootstrapped.
Bootstrap completed successfully.

Bootstrap a Realm Against a MongoDB Metastore

The admin tool's default build also bundles a MongoDB driver, so you can bootstrap against a NoSQL metastore instead. Run a MongoDB container on the same network:

docker run -d --name mongo --network polaris-net \
  -e MONGO_INITDB_ROOT_USERNAME=mongoadmin \
  -e MONGO_INITDB_ROOT_PASSWORD=Minimus! \
  reg.mini.dev/mongo

Bootstrap a realm and root principal credentials against the MongoDB metastore:

docker run --rm --network polaris-net \
  --env="polaris.persistence.type=nosql" \
  --env="polaris.persistence.nosql.backend=MongoDb" \
  --env="quarkus.mongodb.database=polaris" \
  --env="quarkus.mongodb.connection-string=mongodb://mongoadmin:Minimus!@mongo:27017" \
  reg.mini.dev/apache-polaris-admin-tool bootstrap -r polaris -c polaris,admin,admin

You should see a confirmation:

Realm 'polaris' successfully bootstrapped.
Bootstrap completed successfully.

Technical Considerations

The Apache-Polaris-Admin-Tool image provided by Minimus is a slim, security-hardened alternative to the public image. The images are largely interchangeable, with a few differences as noted below.

Apache-Polaris-Admin-Tool built by Minimus:

  1. Runs as a non-root user by default, matching the public image's non-root default of user polaris.
  2. Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.

The Payoff

A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.


Terms & Info

Trademark

This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.

Disclaimer

Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.