...
Linux OS (specifically tested on Ubuntu 18.04, also specifically tested on Windows 10)
Docker version 19+ (specifically tested on 19.03.2)
Postgres database with 10GB storage
Version 1214.x by default, but can be built with later versions if specified
Make sure to create a database that includes WITH encoding ‘UTF-8’
File system (to house indexes) with 10GB space (to download and unpack files)
The browser application has been tested on Chrome and Firefox.
...
Code Block |
---|
# Make a directory for the postgres data (this is where the persistent # database files will live after the database is created and loaded pgDataDir=/tmp/pgdatamkdir $pgDataDir # Download your dump file and dumpDir=/tmp/data wget -o $dumpDir/data.dump https://wci-us-west-2.s3-us-west-2.amazonaws.com/term-server-v2/data/wci-terminology-db-<your data>.dump # Run the docker image (-d puts it in the background) # by default it uses "posgres" for the user and the database name docker run --rm --name pg-docker -v $pgDataDir:/var/lib/postgresql/data -v $dumpDir:/data -e POSTGRES_PASSWORD=rootpwd -d postgres:9.6.16 # Log into the docker image and run pg_restore docker exec -it pg-docker /bin/sh # psql -Upostgrespsql (9.6.16)Upostgres Type "help" for help. postgres=# create database terminologydb with encoding 'UTF-8'; postgres=# \q # pg_restore -O -n public -Fc -d terminologydb -U postgres /data/data.dump ... this will take a few minutes to complete ... # quit |
...