1
0
Fork 0
medicine-config/tfoms-patient/install.sh

19 lines
570 B
Bash
Executable File

set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/tfoms-patient:latest
cd /root/medicine-config/medicine-stack
docker-compose exec postgres psql -c 'CREATE DATABASE tfoms_patient' --username=postgres
read -p "Enter organization name: " ORGANIZATION_NAME
cat <<EOT >> /root/medicine-config/tfoms-patient/.env
SENTRY_SITE=$ORGANIZATION_NAME
EOT
cd /root/medicine-config/tfoms-patient
docker-compose up -d
docker-compose run --rm tfoms-patient bash -c "(cd /app/tfoms && flask db upgrade)"