The data is randomly inserted into the database for testing and development of the AlertDengue project.
https://github.com/AlertaDengue/AlertaDengue
$ sudo apt update && sudo apt -y upgrade
$ sudo apt-get install build-essential git make wget \
postgresql-12 postgresql-12-postgis-3 \
ca-certificates locales --no-install-recommends --yes
Adjust PostgreSQL configuration so that remote connections to the database are possible.
$ sudo echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/12/main/pg_hba.conf
And add listen_addresses
to /etc/postgresql/12/main/postgresql.conf
$ sudo echo "listen_addresses = '*'" >> /etc/postgresql/12/main/postgresql.conf
Restart the Postgres server.
$ sudo /etc/init.d/postgresql restart
Clone the repository to your local machine."
$ git clone https://github.com/AlertaDengue/Data.git
Download and save datafiles in /Data/docker/demo_data/
$ su postgres
$ cd Data
$ make create_demodb
$ sudo apt update && sudo apt -y upgrade
$ sudo apt-get install build-essential git make wget
https://docs.docker.com/engine/install/ubuntu/
https://docs.docker.com/compose/install/
$ git clone https://github.com/AlertaDengue/Data.git
$ cd Data/
$ make download_demodb
$ make build
$ make deploy
Note:
- Use the user postgres to configure and restore data in localhost.
- The image used by the dockerfile is mdillon/postgis:9.6