Commit e7a8abb8 authored by Guillaume Mella's avatar Guillaume Mella

enhance waiting pause code

parent 2575c07d
Pipeline #24533 passed with stage
in 48 seconds
......@@ -10,7 +10,7 @@ RUN PGDATA=/var/lib/postgresql/${PG_VERSION} \
su - postgres -c "/usr/lib/postgresql/${PG_VERSION}/bin/postgres \
-c config_file=/etc/postgresql/${PG_VERSION}/main/postgresql.conf \
-c logging_collector=on" & \
sleep 15 && \
for i in $(seq 20); do if pg_isready -q ; then break; else sleep $i ; fi; done && \
su postgres -c "createuser -s oidb" && \
su postgres -c "createdb oidb" && \
for s in $SQL_FILES ; do echo "processing $s ..." ; su postgres -c "psql oidb < $s"; done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment