]> Git — Sourcephile - gargantext.git/blob - devops/docker/docker-postgres
changement du seuil
[gargantext.git] / devops / docker / docker-postgres
1 #!/bin/bash
2
3 set -eu
4
5 docker stop dbgarg || :
6 docker rm --volumes dbgarg || :
7 export PGPASSWORD="$(grep DB_PASS gargantext.ini | \awk '{print $3}')"
8 docker run --name dbgarg -e POSTGRES_USER=gargantua -e POSTGRES_DB=gargandbV5 -e POSTGRES_PASSWORD=${PGPASSWORD} -d postgres
9 sleep 3
10 docker run -e PGPASSWORD -i --rm --link dbgarg:postgres postgres psql -h postgres -U gargantua -d gargandbV5 < devops/postgres/schema.sql
11 #docker run -e PGPASSWORD -i --rm --link dbgarg:postgres postgres psql -h postgres -U gargantua -d gargandbV5 < gargantext.dump
12 #docker run -e PGPASSWORD -i --rm --link dbgarg:postgres postgres dropdb -h postgres -U gargantua gargandbV5