mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-15 10:33:53 +00:00
move docker files to root
This commit is contained in:
1 parent
5c7636e4c7
commit
c619c0235d
8 files changed
+20
-10
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
wait_database()
|
||||
{
|
||||
while :
|
||||
do
|
||||
(echo > /dev/tcp/127.0.0.1/5432) >/dev/null 2>&1
|
||||
result=$?
|
||||
|
||||
if [[ $result -eq 0 ]]; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
return $result
|
||||
}
|
||||
|
||||
nohup docker-entrypoint.sh postgres > /dev/null 2>&1 &
|
||||
wait_database
|
||||
|
||||
set -ex
|
||||
|
||||
./initializeDatabase.sh
|
||||
|
||||
echo "Stop database"
|
||||
disown %1
|
||||
Reference in new issue
Block a user