Merging work from different computers. FF merge.
Includes a lot of data and updates to various files. Merge branch 'main' of ssh://git.youainti.com:3022/youainti/ClinicalTrialsDataProcessingmain
commit
de3698052b
@ -0,0 +1,6 @@
|
|||||||
|
*.sql.gzip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xlsx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
containers/AACT_Reloader/2023-09-06_aactdb_with_matches.sql.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
other_data/USP[[:space:]]DC/usp_dc_pub_2023_release_2.0_updated_final.csv filter=lfs diff=lfs merge=lfs -text
|
||||||
|
other_data/USP[[:space:]]MMG/MMG_v8.0_Alignment_File.csv filter=lfs diff=lfs merge=lfs -text
|
||||||
|
other_data/VA[[:space:]]Formulary/PharmacyProductSystem_NationalDrugCodeExtract.csv filter=lfs diff=lfs merge=lfs -text
|
||||||
@ -0,0 +1 @@
|
|||||||
|
backup/2023-09-06_aactdb_with_matches.sql.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
RESTORE_DUMP_GZ=2023-09-06_aactdb_with_matches.sql.gz
|
||||||
|
POSTGRES_USER=root
|
||||||
|
POSTGRES_PASSWORD=root
|
||||||
|
POSTGRES_DB=aact_db
|
||||||
|
|
||||||
|
#start container
|
||||||
|
podman run \
|
||||||
|
-e POSTGRES_PASSWORD="${POSTGRES_PASSWORD}" \
|
||||||
|
-e POSTGRES_USER="${POSTGRES_USER}" \
|
||||||
|
-e POSTGRES_DB="${POSTGRES_DB}" \
|
||||||
|
--name "${POSTGRES_DB}" \
|
||||||
|
--detach \
|
||||||
|
--shm-size=512mb \
|
||||||
|
--volume ./backup/:/backup/ \
|
||||||
|
-p 5432:5432\
|
||||||
|
postgres:14-alpine
|
||||||
|
|
||||||
|
|
||||||
|
sleep 10
|
||||||
|
|
||||||
|
# Function to check if PostgreSQL is ready
|
||||||
|
function check_postgres {
|
||||||
|
podman exec -i "${POSTGRES_DB}" psql -h localhost -U "${POSTGRES_USER}" -d "${POSTGRES_DB}" -c '\q' > /dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Wait for PostgreSQL to be ready
|
||||||
|
until check_postgres; do
|
||||||
|
echo "Waiting for PostgreSQL to be ready..."
|
||||||
|
sleep 4
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "PostgreSQL is ready. Restoring the database..."
|
||||||
|
|
||||||
|
# Decompress the dump file and restore it to the database
|
||||||
|
podman exec -i "${POSTGRES_DB}" sh -c "gunzip -c /backup/${RESTORE_DUMP_GZ} | psql -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
|
||||||
|
|
||||||
|
echo "Database restoration complete."
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Binary file not shown.
Binary file not shown.
BIN
other_data/USP MMG/USP_Medicare_Model_Guidelines_v8.0__All_Excel_Spreadsheets_.xlsx (Stored with Git LFS)
BIN
other_data/USP MMG/USP_Medicare_Model_Guidelines_v8.0__All_Excel_Spreadsheets_.xlsx (Stored with Git LFS)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
BIN
other_data/VA Formulary/PharmacyProductSystem_NationalDrugCodeExtract.xlsx (Stored with Git LFS)
BIN
other_data/VA Formulary/PharmacyProductSystem_NationalDrugCodeExtract.xlsx (Stored with Git LFS)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue