scripts: update postgres helper script to set password
Latest postgres docker image requires non empty password. Change-Id: I03017e1b7ff4803fefc24c39087d9ccd4042373b
This commit is contained in:
parent
b0d2cf0e4d
commit
fb2711d05e
@ -8,7 +8,7 @@ cleanup(){
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
docker run --rm -d -p 5433:5432 --name $CONTAINER_NAME postgres:9.6 -c log_min_duration_statement=0
|
||||
docker run --rm -d -p 5433:5432 --name $CONTAINER_NAME -e POSTGRES_PASSWORD=tmppass postgres:9.6 -c log_min_duration_statement=0
|
||||
docker logs -f $CONTAINER_NAME > $LOG_FILE 2>&1 &
|
||||
|
||||
STORJ_SIM_DATABASE=${STORJ_SIM_DATABASE:-"teststorj"}
|
||||
@ -22,4 +22,4 @@ done
|
||||
|
||||
docker exec $CONTAINER_NAME psql -h localhost -U postgres -c "create database $STORJ_SIM_DATABASE;"
|
||||
|
||||
export STORJ_SIM_POSTGRES="postgres://postgres@localhost:5433/$STORJ_SIM_DATABASE?sslmode=disable"
|
||||
export STORJ_SIM_POSTGRES="postgres://postgres:tmppass@localhost:5433/$STORJ_SIM_DATABASE?sslmode=disable"
|
Loading…
Reference in New Issue
Block a user