added info for setting up the db from DrugCentral.org

llm-extraction v0.5.0
will king 3 years ago
parent 2ec314180f
commit ef7ed7001b

@ -1,31 +1,30 @@
{
"folders": {},
"connections": {
"postgres-jdbc-186be7b92d8-4d6ef891885b76f5": {
"provider": "postgresql",
"driver": "postgres-jdbc",
"name": "aact_db",
"mariaDB-186c896820e-6ff11b5b802d8b82": {
"provider": "mysql",
"driver": "mariaDB",
"name": "rxnav",
"save-password": true,
"configuration": {
"host": "will-office",
"port": "5432",
"database": "aact_db",
"url": "jdbc:postgresql://will-office:5432/aact_db",
"port": "3306",
"url": "jdbc:mariadb://will-office:3306/",
"configurationType": "MANUAL",
"type": "dev",
"auth-model": "native"
}
},
"mariaDB-186be7ba5a8-7a57b538dcd4188f": {
"provider": "mysql",
"driver": "mariaDB",
"name": "rxnorm_current",
"postgres-jdbc-186c896a347-2a3d946d2dea4df7": {
"provider": "postgresql",
"driver": "postgres-jdbc",
"name": "aact_db",
"save-password": true,
"configuration": {
"host": "will-office",
"port": "3306",
"database": "rxnorm_current",
"url": "jdbc:mariadb://will-office:3306/rxnorm_current",
"port": "5432",
"database": "aact_db",
"url": "jdbc:postgresql://will-office:5432/aact_db",
"configurationType": "MANUAL",
"type": "dev",
"auth-model": "native"

@ -1 +1 @@
{"resources":{"development_sql/ASSOICATING NCTIDs to NDCs and Marketing dates.sql":{"default-datasource":"postgres-jdbc-186be7b92d8-4d6ef891885b76f5","default-catalog":"aact_db","default-schema":"public"}}}
{"resources":{"development_sql/ASSOICATING NCTIDs to NDCs and Marketing dates.sql":{"default-datasource":"postgres-jdbc-186c896a347-2a3d946d2dea4df7","default-catalog":"aact_db","default-schema":"public"}}}

4
.gitignore vendored

@ -189,5 +189,9 @@ containers/RxNav-In-a-box/rxnav-in-a-box-*
#Ignore stuff from AACT_downlaoder
containers/AACT_downloader/postgresql/*
containers/AACT_downloader/aact_downloads/*
#ignore stuff in DrugCentral Downloader
containers/drugcentral/docker-entrypoint-initdb.d/*.sql
containers/drugcentral/docker-entrypoint-initdb.d/*.sql.gz
containers/drugcentral/db_store/*

@ -0,0 +1,23 @@
version: '3'
networks:
pharmaceutical_research: #because it helps to have a way to link specifically to this.
services:
aact_db:
image: postgres:14-alpine
networks:
- pharmaceutical_research
container_name: DrugCentral
#restart: always #restart after crashes
environment:
POSTGRES_PASSWORD: root
ports:
- "54320:5432" #host:container
volumes: #host:container is the format.
# this is persistant storage for the database
- ./db_store/:/var/lib/postgresql/
# this is the folder containing entrypoint info.
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/

@ -0,0 +1,9 @@
#!/bin/bash
filename="drugcentral.dump.08222022.sql.gz"
cd ./docker-entrypoint-initdb.d/
curl "https://unmtid-shinyapps.net/download/$filename" --output "$filename"
gzip -d $filename
Loading…
Cancel
Save