Different attempt at unattended mysql_secure_installation

This commit is contained in:
WilliamMiceli
2019-11-22 21:35:05 -05:00
parent 1bf76da58a
commit e93f966b86

View File

@@ -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 /