Ensure it overrides all locale related variables
authorYAEGASHI Takeshi <yaegashi@gmail.com>
Sat, 16 May 2020 14:39:15 +0000 (23:39 +0900)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Thu, 18 Feb 2021 17:04:22 +0000 (14:04 -0300)
LC_ALL, LANG and LANGUAGE are set to en_US.UTF-8 in the docker image.
The config should override all of them when other locale is needed.
Otherwise it fails to create a DB with the proper locale setting.

samples/data.yml
samples/mail-receiver.yml
samples/redis.yml
samples/standalone.yml
samples/web_only.yml

index 9f626ce1b7ada3dd06555b8e49422a83c37fc170..2ecb61a92773ffa12d5bdedc2d488d5ab1e217ef 100644 (file)
@@ -21,7 +21,9 @@ params:
 
 env:
   # ensure locale exists in container, you may need to install it
+  LC_ALL: en_US.UTF-8
   LANG: en_US.UTF-8
+  LANGUAGE: en_US.UTF-8
 
 volumes:
   - volume:
index bd7859eda68b60eeec91e12bf4a6a3876c1c2b41..1a3d11bb276a68838064a8331213ea22d162a8ff 100644 (file)
@@ -14,7 +14,9 @@ expose:
   - "25:25"   # SMTP
 
 env:
+  LC_ALL: en_US.UTF-8
   LANG: en_US.UTF-8
+  LANGUAGE: en_US.UTF-8
 
   ## Where e-mail to your forum should be sent.  In general, it's perfectly fine
   ## to use the same domain as the forum itself here.
index 4086008a507c05060c769e34e4b798332f7c66eb..ce0bf05c87892f2189a7f5cb5df8845375c6a422 100644 (file)
@@ -2,7 +2,9 @@ templates:
   - "templates/redis.template.yml"
 
 env:
+  LC_ALL: en_US.UTF-8
   LANG: en_US.UTF-8
+  LANGUAGE: en_US.UTF-8
 
 # any extra arguments for Docker?
 # docker_args:
index f830dda0603a0c04261ceb4e783dad1025d67e19..77a37a147014d8035b2f5a8569d84b01ef091afb 100644 (file)
@@ -37,7 +37,9 @@ params:
   #version: tests-passed
 
 env:
+  LC_ALL: en_US.UTF-8
   LANG: en_US.UTF-8
+  LANGUAGE: en_US.UTF-8
   # DISCOURSE_DEFAULT_LOCALE: en
 
   ## How many concurrent web requests are supported? Depends on memory and CPU cores.
index f48ed2d6a9ad3fb72548dab0e0920c97bb359848..c2b21dfd236c1cc353a5fc882c5f8110e932b1b3 100644 (file)
@@ -29,7 +29,9 @@ params:
   #version: tests-passed
 
 env:
+  LC_ALL: en_US.UTF-8
   LANG: en_US.UTF-8
+  LANGUAGE: en_US.UTF-8
   # DISCOURSE_DEFAULT_LOCALE: en
 
   ## How many concurrent web requests are supported? Depends on memory and CPU cores.