Files
robot-shop/mysql/Dockerfile

17 lines
383 B
Docker
Raw Permalink Normal View History

2018-01-12 17:26:25 +00:00
FROM mysql:5.7.20
ENV MYSQL_ALLOW_EMPTY_PASSWORD=yes \
MYSQL_DATABASE=cities \
MYSQL_USER=shipping \
MYSQL_PASSWORD=secret
# change datadir entry in /etc/mysql/my.cnf
COPY config.sh /root/
RUN /root/config.sh
COPY scripts/* /docker-entrypoint-initdb.d/
2018-05-14 10:35:06 +01:00
RUN /entrypoint.sh mysqld & while [ ! -f /tmp/finished ]; do sleep 10; done
2018-01-12 17:26:25 +00:00
RUN rm /docker-entrypoint-initdb.d/*