add wait-for-it

This commit is contained in:
Adrian Kuschelyagi Malacoda 2019-07-02 20:11:42 -05:00
parent b2a5879743
commit e020b4cc3f
2 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,9 @@ RUN ln -sf /configuration/supervisord.conf /etc/supervisor/supervisord.conf && \
ln -sf /configuration/php-fpm-pool.conf /etc/php/7.0/fpm/pool.d/www.conf && \
ln -sf /configuration/php.ini /etc/php/7.0/fpm/php.ini
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /usr/bin/wait-for-it
RUN chmod +x /usr/bin/wait-for-it
EXPOSE 80
CMD /usr/bin/supervisord -n

View File

@ -35,6 +35,7 @@ sed -i "s/@GCL_SMTP_USER@/$GCL_SMTP_USER/g" /etc/msmtprc
sed -i "s/@GCL_SMTP_PASSWORD@/$GCL_SMTP_PASSWORD/g" /etc/msmtprc
# Run maintenance scripts
wait-for-it "$GCL_DB_HOST:3306" --timeout=60
cd $WIKI_SOURCE/maintenance
php update.php