Instructions about how to put CEPAGRI dataset into a POSTGRESQL database and then connect a Metabase instance to it, helping the data analysis.
Instructions: https://docs.docker.com/install/linux/docker-ce/ubuntu/ Post install steps: https://docs.docker.com/install/linux/linux-postinstall/ (“Manage Docker as a non-root user”)
Instructions: https://wiki.postgresql.org/wiki/Apt Packages: postgresql-client pgadmin4
sudo apt-get install -y libpq-dev python3-dev
sudo -H python3 -m pip install setuptools sqlalchemy psycopg2
mkdir ~/cepagri-postgres
- Run:
docker run --rm --name cepagri-postgres -e POSTGRES_PASSWORD=123456789 -e POSTGRES_DB=cepagri -d -p 5432:5432 -v ~/cepagri-postgres:/var/lib/postgresql/data postgres
- Credentials
Host address: 127.0.0.1 or localhost
Port: 5432
User: postgres
Password: 123456789
- Using psql:
psql -h localhost -U postgres -d postgres -p 5432
- Use PGAdmin to query the data easily
- Run:
docker run -d -p 3000:3000 --rm --network host --name metabase metabase/metabase
- Open the address http://localhost:3000 on browser and follow the wizard to configure Metabase
- Create a PostgreSQL data source using the database credentials