Changes
Page history
Update Galara Cluster (MariaDB 10.5) docker node
authored
Mar 17, 2021
by
Emiliano Della Bina
Show whitespace changes
Inline
Side-by-side
Galara-Cluster-(MariaDB-10.5)-docker-node.md
View page @
5f623e82
...
...
@@ -38,7 +38,7 @@ RUN systemctl enable sshd
## use as a base and then add these
RUN /install_sshd.sh
RUN echo 'root:
toor1234
' | chpasswd
RUN echo 'root:
mypasswd
' | chpasswd
CMD ["/usr/sbin/init"]
```
...
...
@@ -83,7 +83,7 @@ then
PASS
=
$(
pwgen
-s
12 1
)
echo
"Generated password for root is:
${
PASS
}
"
else
PASS
=
$(
"
toor1234
"
)
PASS
=
$(
"
mypasswd
"
)
fi
echo
"Setting password for root"
echo
"root:
${
PASS
}
"
| chpasswd
...
...
@@ -148,7 +148,7 @@ FROM ubuntu:20.04
RUN apt-get update && apt-get install -y openssh-server
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/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN mkdir /root/.ssh
...
...
...
...