Merge branch 'ent-fix-docker-timeouts' into 'develop'

adjusted sleep before try to use mysql socket, due slow runners

See merge request artica/pandorafms!4739
This commit is contained in:
Daniel Rodriguez 2022-03-04 13:26:54 +00:00
commit c130bc8a35
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ RUN rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql && \
chown mysql. -R /var/lib/mysql && \
sudo -u mysql mysqld --initialize --explicit_defaults_for_timestamp && \
sudo -u mysql mysqld --daemonize & \
sleep 15 && \
sleep 50 && \
mysql_default_pass=$(cat /var/log/mysqld.log | grep "temporary password" | awk '{print $NF}') && \
mysqladmin -u root -p"$mysql_default_pass" --user=root password 'pandora' && \
httpd -k start && \