Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sistem Informasi Zakat
Sizakat 5.0 (Refactoring)
Sizakat Backend
Commits
16ea4d63
Commit
16ea4d63
authored
Aug 17, 2020
by
hashlash
Browse files
[CHORES] fix wait for db script
parent
d373d051
Pipeline
#51491
passed with stage
in 19 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
entrypoint.sh
View file @
16ea4d63
#!/bin/sh
if
[
"
$DATABASE
"
=
"postgres
"
]
if
[
-n
"
$POSTGRES_DB
"
]
then
echo
"Waiting for postgres..."
while
!
nc
-z
$
SQL_HOST
$SQL
_PORT
;
do
while
!
nc
-z
$
POSTGRES_HOST
$POSTGRES
_PORT
;
do
sleep
0.1
done
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment