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
|
|
@ -54,5 +54,8 @@ fi
|
||||||
# ensure /mnt/koji is owned by apache
|
# ensure /mnt/koji is owned by apache
|
||||||
chown -R apache:apache /mnt/koji
|
chown -R apache:apache /mnt/koji
|
||||||
|
|
||||||
|
# signal we are ready via a file
|
||||||
|
touch /share/hub.init
|
||||||
|
|
||||||
# run apache
|
# run apache
|
||||||
httpd -DFOREGROUND
|
httpd -DFOREGROUND
|
||||||
|
|
|
||||||
|
|
@ -114,8 +114,14 @@ koji_start() {
|
||||||
-e POSTGRES_HOST=org.osbuild.koji.postgres \
|
-e POSTGRES_HOST=org.osbuild.koji.postgres \
|
||||||
${KOJI_HUB_IMAGE}
|
${KOJI_HUB_IMAGE}
|
||||||
|
|
||||||
# TODO: we need to wait for the database to be initialized here. A better method should be used.
|
# We need to wait for the database to be initialized here. The container creates a file to let us know
|
||||||
sleep 2
|
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
|
# create koji users
|
||||||
# kojiadmin/kojipass - admin
|
# kojiadmin/kojipass - admin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue