add wait-for-it
This commit is contained in:
parent
b2a5879743
commit
e020b4cc3f
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user