Explorar o código

Merge pull request #780 from davidcurrie/master

Document changing locale for websphere-liberty
yosifkit %!s(int64=8) %!d(string=hai) anos
pai
achega
161096acfc
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      websphere-liberty/content.md

+ 12 - 0
websphere-liberty/content.md

@@ -117,3 +117,15 @@ docker run -d -p 80:9080 -p 443:9443 \
     --tmpfs /opt/ibm/wlp/output --tmpfs /logs -v /config --read-only \
     websphere-liberty:javaee7
 ```
+
+## Changing locale
+
+The base Ubuntu image does not include additional language packs. To use an alternative locale, build your own image that installs the required language pack and then sets the `LANG` environment variable. For example, the following Dockerfile starts with the `websphere-liberty:webProfile7` image, installs the Portuguese language pack, and sets Brazilian Portuguese as the default locale:
+
+```dockerfile
+FROM websphere-liberty:webProfile7
+RUN apt-get update \
+  && apt-get install -y language-pack-pt-base \
+  && rm -rf /var/lib/apt/lists/*
+ENV LANG pt_BR.UTF-8
+```