[ducktests] Set locale to c.utf-8 in docker image
@@ -91,7 +91,14 @@ RUN cd /opt && curl -OL https://github.com/jiaqi/jmxterm/releases/download/v$JMX
&& mv $JMXTERM_ARTIFACT $JMXTERM_NAME.jar
# Set up the ducker user.
-RUN useradd -ms /bin/bash ducker && mkdir -p /home/ducker/ && rsync -aiq /root/.ssh/ /home/ducker/.ssh && chown -R ducker /home/ducker/ /mnt/ /var/log/ && echo "PATH=$(runuser -l ducker -c 'echo $PATH'):$JAVA_HOME/bin" >> /home/ducker/.ssh/environment && echo 'PATH=$PATH:'"$JAVA_HOME/bin" >> /home/ducker/.profile && echo 'ducker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
+RUN useradd -ms /bin/bash ducker \
+ && mkdir -p /home/ducker/ \
+ && rsync -aiq /root/.ssh/ /home/ducker/.ssh \
+ && chown -R ducker /home/ducker/ /mnt/ /var/log/ \
+ && echo "LANG=C.UTF-8" >> /home/ducker/.ssh/environment \
+ && echo "PATH=$(runuser -l ducker -c 'echo $PATH'):$JAVA_HOME/bin" >> /home/ducker/.ssh/environment \
+ && echo 'PATH=$PATH:'"$JAVA_HOME/bin" >> /home/ducker/.profile \
+ && echo 'ducker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
USER ducker
CMD sudo service ssh start && tail -f /dev/null
