From e93f966b8695b84e2cd84e4b18ea1199fb18e737 Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Fri, 22 Nov 2019 21:35:05 -0500 Subject: [PATCH] Different attempt at unattended mysql_secure_installation --- Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e83b61..1937890 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,16 +17,7 @@ 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 << EOF - - y - Password1234 - Password1234 - y - y - y - y - EOF +RUN echo -e "\ny\nPassword1234\nPassword1234\ny\ny\ny\ny" | mysql_secure_installation # Copying in startup script COPY /entrypoint.sh /