container/hub: sync with script via file
Create a file in the hub container the share directory that will signal to the outside that we are done with the setup.
This commit is contained in:
parent
7a366eca7a
commit
1effdc7a2c
2 changed files with 11 additions and 2 deletions
|
|
@ -114,8 +114,14 @@ koji_start() {
|
|||
-e POSTGRES_HOST=org.osbuild.koji.postgres \
|
||||
${KOJI_HUB_IMAGE}
|
||||
|
||||
# TODO: we need to wait for the database to be initialized here. A better method should be used.
|
||||
sleep 2
|
||||
# We need to wait for the database to be initialized here. The container creates a file to let us know
|
||||
echo "Waiting for DB to be initialized"
|
||||
while true; do
|
||||
if [ -f ${SHARE_DIR}/hub.init ]; then
|
||||
break
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
|
||||
# create koji users
|
||||
# kojiadmin/kojipass - admin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue