Update Galara Cluster (MariaDB 10.5) docker node authored by Emiliano Della Bina's avatar Emiliano Della Bina
...@@ -38,7 +38,7 @@ RUN systemctl enable sshd ...@@ -38,7 +38,7 @@ RUN systemctl enable sshd
## use as a base and then add these ## use as a base and then add these
RUN /install_sshd.sh RUN /install_sshd.sh
RUN echo 'root:toor1234' | chpasswd RUN echo 'root:mypasswd' | chpasswd
CMD ["/usr/sbin/init"] CMD ["/usr/sbin/init"]
``` ```
...@@ -83,7 +83,7 @@ then ...@@ -83,7 +83,7 @@ then
PASS=$(pwgen -s 12 1) PASS=$(pwgen -s 12 1)
echo "Generated password for root is: ${PASS}" echo "Generated password for root is: ${PASS}"
else else
PASS=$("toor1234") PASS=$("mypasswd")
fi fi
echo "Setting password for root" echo "Setting password for root"
echo "root:${PASS}" | chpasswd echo "root:${PASS}" | chpasswd
...@@ -148,7 +148,7 @@ FROM ubuntu:20.04 ...@@ -148,7 +148,7 @@ FROM ubuntu:20.04
RUN apt-get update && apt-get install -y openssh-server RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd RUN mkdir /var/run/sshd
RUN echo 'root:toor1234' |chpasswd RUN echo 'root:mypasswd' |chpasswd
RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN mkdir /root/.ssh RUN mkdir /root/.ssh
... ...
......