258: Wait for PostgreSQL before starting Odoo

This commit is contained in:
rbuisson
2019-07-16 15:16:04 +02:00
committed by Romain Buisson
parent f126d72f66
commit 16238be912
6 changed files with 12 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ RUN set -x; \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
ca-certificates \ ca-certificates \
curl \ curl \
wait-for-it \
dirmngr \ dirmngr \
fonts-noto-cjk \ fonts-noto-cjk \
gnupg \ gnupg \
+3
View File
@@ -23,6 +23,9 @@ check_config "db_port" "$PORT"
check_config "db_user" "$USER" check_config "db_user" "$USER"
check_config "db_password" "$PASSWORD" check_config "db_password" "$PASSWORD"
# Wait for the database to be up
wait-for-it $HOST:$PORT --timeout=60 -- sleep 5s
case "$1" in case "$1" in
-- | odoo) -- | odoo)
shift shift
+1
View File
@@ -13,6 +13,7 @@ RUN set -x; \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
ca-certificates \ ca-certificates \
curl \ curl \
wait-for-it \
dirmngr \ dirmngr \
fonts-noto-cjk \ fonts-noto-cjk \
gnupg \ gnupg \
+3
View File
@@ -23,6 +23,9 @@ check_config "db_port" "$PORT"
check_config "db_user" "$USER" check_config "db_user" "$USER"
check_config "db_password" "$PASSWORD" check_config "db_password" "$PASSWORD"
# Wait for the database to be up
wait-for-it $HOST:$PORT --timeout=60 -- sleep 5s
case "$1" in case "$1" in
-- | odoo) -- | odoo)
shift shift
+1
View File
@@ -10,6 +10,7 @@ RUN set -x; \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
ca-certificates \ ca-certificates \
curl \ curl \
wait-for-it \
dirmngr \ dirmngr \
fonts-noto-cjk \ fonts-noto-cjk \
gnupg \ gnupg \
+3
View File
@@ -23,6 +23,9 @@ check_config "db_port" "$PORT"
check_config "db_user" "$USER" check_config "db_user" "$USER"
check_config "db_password" "$PASSWORD" check_config "db_password" "$PASSWORD"
# Wait for the database to be up
wait-for-it $HOST:$PORT --timeout=60 -- sleep 5s
case "$1" in case "$1" in
-- | odoo) -- | odoo)
shift shift