Different attempt at unattended mysql_secure_installation
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -17,16 +17,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|||||||
COPY /etc/ /etc/
|
COPY /etc/ /etc/
|
||||||
|
|
||||||
# Setting up MySQL --Will come back to later, as it's not necessary and not playing very well with automation
|
# 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
|
RUN echo -e "\ny\nPassword1234\nPassword1234\ny\ny\ny\ny" | mysql_secure_installation
|
||||||
|
|
||||||
y
|
|
||||||
Password1234
|
|
||||||
Password1234
|
|
||||||
y
|
|
||||||
y
|
|
||||||
y
|
|
||||||
y
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Copying in startup script
|
# Copying in startup script
|
||||||
COPY /entrypoint.sh /
|
COPY /entrypoint.sh /
|
||||||
|
|||||||
Reference in New Issue
Block a user