wait for github in php-fpm entrypoint

This commit is contained in:
Christoph Kluge 2021-08-18 12:52:57 +02:00
parent 255cd59ee6
commit 67cba6d731

View File

@ -1,6 +1,14 @@
#!/usr/bin/env bash
if [ "$APP_CLUSTERCOCKPIT_INIT" = true ]; then
# Wait for docker dns able to resolve gitub
# Solves weird special case of container loading faster than github can be reached
until ping -c 1 github.com > /dev/null ; do
echo "Could not reach github.com yet ..."
sleep 1
done
rm -rf /var/www/symfony/* /var/www/symfony/.??*
git clone https://github.com/ClusterCockpit/ClusterCockpit .