Skip to content

openthc/meta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metabase

A Reporting Tool

Docker Install

Prepare the PostgreSQL

CREATE USER openthc_meta WITH ENCRYPTED PASSWORD 'openthc_meta';
CREATE DATABASE openthc_meta with owner openthc_meta;

Development

To connect to a PostgreSQL that is running on the localhost, we have to do a trick. First create a special IP address on the loopback device. Then configure PostgreSQL to listen to that address and maybe update /etc/hosts Adjust the firewall to allow traffic to it as needed

iptables -t filter -I INPUT 1 -s 172.0.0.0/8 -d 10.4.20.69/32 -j ACCEPT

Adjust the pg_hba to allow access from the docker images.

host    all    all    172.0.0.0/8    md5

Building from Source

Building from source will require the latest versions of NodeJS and Yarn.

Install NodeJS

curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get install -y nodejs

Install Yarn

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install yarn

Install Lein

wget 'https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein'
chmod 0755 ./lein
export PATH="$PATH:$(readlink -f .)"

Notes

Database Connections

Some times it can leave connections open for a long time?

Password Reset

Get a current-ish timestamp.

UPDATE core_user SET reset_triggered = 1514706508, reset_token = 'AAA'  where id = 1;

Then go to https://YOURHOSTNAME/auth/reset_password/YOURTOKEN

About

Metabase Interfaces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published