File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
3- thisdir=` dirname " $0 " `
3+ thisdir=" $( realpath $( dirname " $0 " ) ) "
44
55help () {
66 echo " This script starts the necessary services for the app in question"
@@ -20,7 +20,7 @@ exit_abnormal() {
2020
2121start_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..."
You can’t perform that action at this time.
0 commit comments