Browse Source

add wait-for-it

master
Adrian Malacoda 1 month ago
parent
commit
e020b4cc3f
2 changed files with 4 additions and 0 deletions
  1. 3
    0
      Dockerfile
  2. 1
    0
      scripts/setup.sh

+ 3
- 0
Dockerfile 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

+ 1
- 0
scripts/setup.sh 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


Loading…
Cancel
Save