Change add.sh to use credentials from docker-compose.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2022-01-18 11:35:11 +01:00
parent 163aa33717
commit 156d925215
2 changed files with 4 additions and 1 deletions

View file

@ -76,5 +76,8 @@ services:
- ${DATA_MOUNT_PATH}:${DATA_MOUNT_PATH}:ro
depends_on:
- db
command: >-
-format postgres -pg_table entries -pg_mode insert_binary
-pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
tmpfs:
- /tmp

View file

@ -10,5 +10,5 @@ if [[ "$1" != "" ]]; then
DIR="$1"
fi
find "${DIR}" -type f | docker-compose run --rm srg -format postgres -pg_table entries -pg_mode insert_binary -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
find "${DIR}" -type f | docker-compose run --rm -T srg