Our project is packed into two Docker images you can pull and the provided docker-compose-hub.yml sets all variables, ports, and images for you.
We have provided instructions as well for running this project outside of a container. However, we strongly advise in using the docker container version
since it's much easier to run. During development, we primarily leveraged the docker containers.
You can watch a 1-minute unlisted tutorial on how to run it using this method as well: https://www.youtube.com/watch?v=k151XB_YDDQ
You will need:
docker run hello-world without issues, your system is ready)docker-compose-hub.yml in an empty accessible directory.cd into the directory containing your docker-compose-hub.ymldocker compose -f ./docker-compose-hub.yml updb and data_server containers are ready, navigate to http://localhost:8501 to view the pageNote: there are some startup tasks that will take roughly 1-5 minutes depending on the speed of your storage and CPU.
You can use this method to build the containers locally. Keep in mind this will require a significant amount of CPU/Storage which is why we recommend the Docker method
You will need:
This builds the database container alone. Keep in mind this will require a significant amount of CPU/Storage which is why we recommend the Docker method
Download either the slim database (https://datagnomesgroup.ddns.net/pg_slim.zst) or the full database (https://datagnomesgroup.ddns.net/pg.zst)
We strongly recommend the slim version because some of our queries require 60+GB of memory to execute
Create the database (/usr/lib/postgresql/15/bin/initdb -D [wherever you want the database])
Start the database (/usr/lib/postgresql/15/bin/pg_ctl -D $PGDATA start)
Create database (createdb --encoding=UTF8 --lc-collate='en_US.utf8' --lc-ctype='en_US.utf8' --template=template0 datastore )
Create user (psql -d datastore -c "CREATE USER chris WITH SUPERUSER PASSWORD 'chris';")
Load data (zstd -d [path to your database download] -c | psql -d datastore --set ON_ERROR_STOP=1)
cd) to the server directorypython -m pip install -r requirements.txt/usr/lib/postgresql/15/bin/pg_ctl -D [postgres location from above] startpython3 server/model_objects/run_algos.pystreamlit run Home.py --server.port=8501http://localhost:8501 to view the pageNote: there are some startup tasks that will take roughly 5-15 minutes depending on the speed of your storage and CPU.
If you need assistance, contact our team leader or email [email protected]
Content type
Image
Digest
sha256:1a91c8183…
Size
4.2 GB
Last updated
over 1 year ago
docker pull datagnomesteam/project_database