diff --git a/php-fpm/entrypoint.sh b/php-fpm/entrypoint.sh index 9c4adc7..063541a 100755 --- a/php-fpm/entrypoint.sh +++ b/php-fpm/entrypoint.sh @@ -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 .