From 1bf76da58a4a14094f757b698fe87da32c4770f3 Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Fri, 22 Nov 2019 21:31:45 -0500 Subject: [PATCH] Attempt at unattended mysql_secure_installation --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 429d041..6e83b61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,16 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins COPY /etc/ /etc/ # Setting up MySQL --Will come back to later, as it's not necessary and not playing very well with automation -#RUN mysql_secure_installation --use-defaults +RUN mysql_secure_installation << EOF + + y + Password1234 + Password1234 + y + y + y + y + EOF # Copying in startup script COPY /entrypoint.sh /