mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 09:17:26 +01:00
wait for github in php-fpm entrypoint
This commit is contained in:
parent
255cd59ee6
commit
67cba6d731
@ -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 .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user