rset(1) : Formulas

Metabase

Metabase is a business intelligence reporting product that provides some excellent tools for visualizing, filtering and cross-filtering data.

The entire application is contained in metabase.jar. which can be stashed in _sources. where rinstall(1) can fetch from if the target does not exist.

Rocky/Alma Linux 9 Install

execute_with=sudo

repos:
   repo_url="https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/"
   [ -f /etc/yum.repos.d/pgdg-redhat-all.repo ] || {
       dnf install -y $repo_url/pgdg-redhat-repo-latest.noarch.rpm
       dnf -qy module disable postgresql
   }
   dnf -qy install epel-release

pgdb:
   dnf -qy install postgresql16-server postgresql16-contrib
   [ -d /var/lib/pgsql/16/data ] || {
       /usr/pgsql-16/bin/postgresql-16-setup initdb
       systemctl start postgresql-16
       su postgres -c 'createuser metabase'
       su postgres -c 'createdb -O metabase metabase'
   }
   systemctl enable postgresql-16

metabase:
   dnf -qy install java-latest-openjdk-headless
   ./rinstall -m 644 metabase.jar /opt/
   ./rinstall report/metabase.env /etc/default/metabase
   ./rinstall report/metabase.service /etc/systemd/system/metabase.service && systemctl daemon-reload
   systemctl enable metabase

Metabase Documentation