fixed MySQL shutdown

This commit is contained in:
Steve Waterworth
2018-05-14 10:35:06 +01:00
parent d332350452
commit 14da470a06
2 changed files with 1 additions and 2 deletions

View File

@@ -11,6 +11,6 @@ RUN /root/config.sh
COPY scripts/* /docker-entrypoint-initdb.d/
RUN /entrypoint.sh mysqld & while [ ! -f /tmp/finished ]; do sleep 10; done && mysqladmin shutdown
RUN /entrypoint.sh mysqld & while [ ! -f /tmp/finished ]; do sleep 10; done
RUN rm /docker-entrypoint-initdb.d/*

View File

@@ -1,6 +1,5 @@
#!/bin/sh
# signal that the import has finsihed
sleep 5
touch /tmp/finished