258: Wait for PostgreSQL before starting Odoo
This commit is contained in:
parent
f126d72f66
commit
16238be912
@ -13,6 +13,7 @@ RUN set -x; \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
wait-for-it \
|
||||
dirmngr \
|
||||
fonts-noto-cjk \
|
||||
gnupg \
|
||||
|
@ -23,6 +23,9 @@ check_config "db_port" "$PORT"
|
||||
check_config "db_user" "$USER"
|
||||
check_config "db_password" "$PASSWORD"
|
||||
|
||||
# Wait for the database to be up
|
||||
wait-for-it $HOST:$PORT --timeout=60 -- sleep 5s
|
||||
|
||||
case "$1" in
|
||||
-- | odoo)
|
||||
shift
|
||||
|
@ -13,6 +13,7 @@ RUN set -x; \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
wait-for-it \
|
||||
dirmngr \
|
||||
fonts-noto-cjk \
|
||||
gnupg \
|
||||
|
@ -23,6 +23,9 @@ check_config "db_port" "$PORT"
|
||||
check_config "db_user" "$USER"
|
||||
check_config "db_password" "$PASSWORD"
|
||||
|
||||
# Wait for the database to be up
|
||||
wait-for-it $HOST:$PORT --timeout=60 -- sleep 5s
|
||||
|
||||
case "$1" in
|
||||
-- | odoo)
|
||||
shift
|
||||
|
@ -10,6 +10,7 @@ RUN set -x; \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
wait-for-it \
|
||||
dirmngr \
|
||||
fonts-noto-cjk \
|
||||
gnupg \
|
||||
|
@ -23,6 +23,9 @@ check_config "db_port" "$PORT"
|
||||
check_config "db_user" "$USER"
|
||||
check_config "db_password" "$PASSWORD"
|
||||
|
||||
# Wait for the database to be up
|
||||
wait-for-it $HOST:$PORT --timeout=60 -- sleep 5s
|
||||
|
||||
case "$1" in
|
||||
-- | odoo)
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user