Skip to content

Commit 7403a52

Browse files
committed
Fixing infra script
1 parent 7897d66 commit 7403a52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/infra.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
3-
thisdir=`dirname "$0"`
3+
thisdir="$(realpath $(dirname "$0"))"
44

55
help() {
66
echo "This script starts the necessary services for the app in question"
@@ -20,7 +20,7 @@ exit_abnormal() {
2020

2121
start_postgres() {
2222
echo "Starting PostgreSQL database '${DB_CONTAINER_NAME}'"
23-
local pid=$(cd ${thisdir} && ${engine} run -d --rm=true --name ${DB_CONTAINER_NAME} -v ./dbdata:/docker-entrypoint-initdb.d/ -p 5432:5432 -e POSTGRES_USER=fruits -e POSTGRES_PASSWORD=fruits -e POSTGRES_DB=fruits postgres:17 > /dev/null)
23+
local pid=$(${engine} run -d --rm --name ${DB_CONTAINER_NAME} -v ${thisdir}/dbdata:/docker-entrypoint-initdb.d:O -p 5432:5432 -e POSTGRES_USER=fruits -e POSTGRES_PASSWORD=fruits -e POSTGRES_DB=fruits postgres:17)
2424
echo "PostgreSQL DB process: $pid"
2525

2626
echo "Waiting for PostgreSQL to be ready..."

0 commit comments

Comments
 (0)