diff --git a/.dbeaver/.credentials-config.json.bak b/.dbeaver/.credentials-config.json.bak index 5d48b6c..2d11c2b 100644 Binary files a/.dbeaver/.credentials-config.json.bak and b/.dbeaver/.credentials-config.json.bak differ diff --git a/.dbeaver/.data-sources.json.bak b/.dbeaver/.data-sources.json.bak index 115afe3..b2d156b 100644 --- a/.dbeaver/.data-sources.json.bak +++ b/.dbeaver/.data-sources.json.bak @@ -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" diff --git a/.dbeaver/.project-metadata.json.bak b/.dbeaver/.project-metadata.json.bak index d76f603..9310679 100644 --- a/.dbeaver/.project-metadata.json.bak +++ b/.dbeaver/.project-metadata.json.bak @@ -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"}}} \ No newline at end of file +{"resources":{"development_sql/ASSOICATING NCTIDs to NDCs and Marketing dates.sql":{"default-datasource":"postgres-jdbc-186c896a347-2a3d946d2dea4df7","default-catalog":"aact_db","default-schema":"public"}}} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9da644c..0e6b8e4 100644 --- a/.gitignore +++ b/.gitignore @@ -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/* diff --git a/containers/drugcentral/docker-compose.yaml b/containers/drugcentral/docker-compose.yaml new file mode 100644 index 0000000..9870c73 --- /dev/null +++ b/containers/drugcentral/docker-compose.yaml @@ -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/ + + diff --git a/containers/drugcentral/init.sh b/containers/drugcentral/init.sh new file mode 100755 index 0000000..791d337 --- /dev/null +++ b/containers/drugcentral/init.sh @@ -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 diff --git a/development_sql/Script.sql b/development_sql/Script.sql new file mode 100644 index 0000000..e69de29