From 251c093ad4eabef8b34242e03bf87076e123e4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20M=C3=BCller?= Date: Wed, 4 Aug 2021 09:24:51 +0200 Subject: [PATCH] Added locale settings for german Umlaut handling. --- helperScripts/Dockerfile.Jetson-Coqui | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/helperScripts/Dockerfile.Jetson-Coqui b/helperScripts/Dockerfile.Jetson-Coqui index 845343e..88bdefc 100644 --- a/helperScripts/Dockerfile.Jetson-Coqui +++ b/helperScripts/Dockerfile.Jetson-Coqui @@ -7,7 +7,7 @@ RUN echo "deb https://repo.download.nvidia.com/jetson/common r32.4 main" >> /etc RUN echo "deb https://repo.download.nvidia.com/jetson/t194 r32.4 main" >> /etc/apt/sources.list.d/nvidia-l4t-apt-source.list RUN apt-get update -y -RUN apt-get install vim python-mecab libmecab-dev cuda-toolkit-10-2 libcudnn8 libcudnn8-dev libsndfile1-dev -y +RUN apt-get install vim python-mecab libmecab-dev cuda-toolkit-10-2 libcudnn8 libcudnn8-dev libsndfile1-dev locales -y # Setting some environment vars ENV LLVM_CONFIG=/usr/bin/llvm-config-9 @@ -20,6 +20,13 @@ ENV NVIDIA_VISIBLE_DEVICES all ENV NVIDIA_DRIVER_CAPABILITIES compute,utility LABEL com.nvidia.volumes.needed="nvidia_driver" +# Adjust locale setting to your personal needs +RUN sed -i '/de_DE.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG de_DE.UTF-8 +ENV LANGUAGE de_DE:de +ENV LC_ALL de_DE.UTF-8 + RUN mkdir /coqui WORKDIR /coqui @@ -41,4 +48,4 @@ CMD /bin/bash -c "jupyter lab --ip 0.0.0.0 --port 8888 --allow-root" # Run example: # nvidia-docker run -p 8888:8888 -d --shm-size 32g --gpus all -v /ssd/___prj/tts/dataset-july21:/coqui/TTS/data jetson-coqui # Bash example: -# nvidia-docker exec -it /bin/bash \ No newline at end of file +# nvidia-docker exec -it /bin/bash