This is a worker that syncs the formal metabase with the formal database.
First build the docker image:
docker build -t formal-metabase-sync-worker .Then run the docker image:
docker run -e METABASE_HOSTNAME="" -e METABASE_USE_API_KEY="" -e METABASE_API_KEY="" -e METABASE_USERNAME="" -e METABASE_PASSWORD="" -e METABASE_VERSION="" -e FORMAL_API_KEY="" -e FORMAL_APP_ID="" -e VERIFY_TLS="" -e CF_ACCESS_CLIENT_ID="" -e CF_ACCESS_CLIENT_SECRET="" formal-metabase-sync-worker METABASE_USE_API_KEY(optional): Whether or not to use the Metabase API key instead of username/password auth. Set totrueorfalse. Default value isfalse.METABASE_API_KEY(optional): The API key for the metabase instance; required if not providing username/password auth.METABASE_HOSTNAME: The hostname of the metabase instanceMETABASE_USERNAME: (optional) The username of the metabase instance; required if not providing API key.METABASE_PASSWORD: (optional) The password of the metabase instance; required if not providing API key.METABASE_VERSION: The version of the metabase instance (e.g.: 0.35.4)FORMAL_API_KEY: The API key of the formal instanceFORMAL_APP_ID: The app id of the Formal Metabase integrationVERIFY_TLS: Whether or not to verify the TLS certificate of the Metabase instance. Set totrueorfalseCF_ACCESS_CLIENT_ID(optional): Cloudflare Access Client ID for bypassing Cloudflare Access protection on Metabase instancesCF_ACCESS_CLIENT_SECRET(optional): Cloudflare Access Client Secret for bypassing Cloudflare Access protection on Metabase instancesLOG_LEVEL(optional): Set the Global logging level to any of these options:debug,info,warn,error,fatal,panic,disabled. Default value isinfo.FREQUENCY(optional): The frequency at which to run the sync. Expected format:1h,30m, etc. If not provided, the sync will run once and then exit.