An open API service indexing awesome lists of open source software.

https://github.com/paulo-amaral/metabase-tips

Metabase scripts
https://github.com/paulo-amaral/metabase-tips

metabase python python3 shelkl shell shell-script shell-scripting

Last synced: 26 days ago
JSON representation

Metabase scripts

Awesome Lists containing this project

README

          

# Metabase tips
## Running localy instance of metabase and postgres outside of docker
#### Dump your db to localhost
1 - Create a new postgresql server in that app(mac uses postgres.app) - https://postgresapp.com or stackbricks(windows) https://stackbricks.app/

2 - Create a database in that server : `create database your_db`

3 - Restore this dump into that db `pg_restore -Ox -d your_db ./your_db.custom ` where your db custom is the latest dump to restore

If you want to run the actual metabase database (with all the questions built already).
Just need to run the metabase executable with environment vars that tell it to use that db

create a database in that server `create database your_metabase_db`

restore this dump into that db `pg_restore -Ox -d your_metabase_db ./your_metabase_db.custom`

I run outside of docker, just using java and use a script like this:
```
#!/bin/sh
export MB_DB_TYPE=postgres
export MB_DB_DBNAME=my_mb_db
export MB_DB_PORT=5432
export MB_DB_USER=username
export MB_DB_PASS=
export MB_DB_HOST=localhost
java -jar ~/Downloads/metabase.jar
#telling metabase to use postgres on localhost:5432 and the db my_mb_db
```