Page MenuHomePhabricator

Please install locale information on (kubernetes) webserver
Closed, ResolvedPublic

Description

When I type in "locale -a" on the shell on sgebastian, I see a lot of lines.

When I start webservice --backend=kubernetes start

then the following php-snipplet:

print "<!-- "; print shell_exec("locale -a"); print " -->";

just prints out a minimal set:
<!-- C
C.UTF-8
POSIX
en_US.utf8
-->

Would really be nice, when I could have some more, especially de_DE.utf8

Event Timeline

Wurgl created this task.Mar 12 2019, 7:35 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 12 2019, 7:35 AM

Change 496101 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[operations/docker-images/toollabs-images@master] all: install locales used in Toolforge grid

https://gerrit.wikimedia.org/r/496101

Change 496101 merged by jenkins-bot:
[operations/docker-images/toollabs-images@master] all: install locales used in Toolforge grid

https://gerrit.wikimedia.org/r/496101

bd808 closed this task as Resolved.Mar 13 2019, 11:59 PM
bd808 claimed this task.
bd808 added a subscriber: bd808.

I have updated the 'base' and 'stretch' Docker container base layers to include the same set of locales that we are building for the bastions and grid engine hosts:

$ webservice --backend=kubernetes php7.2 shell
$ locale -a
bokmal
C
C.UTF-8
da_DK
da_DK.iso88591
da_DK.utf8
danish
dansk
de_DE
de_DE.iso88591
de_DE.utf8
deutsch
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
fa_IR.utf8
fi_FI
fi_FI.iso88591
fi_FI.utf8
finnish
french
fr_FR
fr_FR.iso88591
fr_FR.utf8
german
it_CH.utf8
it_IT.utf8
mr_IN.utf8
nb_NO
nb_NO.iso88591
nb_NO.utf8
nn_NO
nn_NO.iso88591
nn_NO.utf8
no_NO
no_NO.ISO-8859-1
norwegian
nynorsk
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
portuguese
POSIX
pt_PT
pt_PT.iso88591
pt_PT.utf8
romanian
ro_RO
ro_RO.iso88592
ro_RO.utf8
ru_RU
ru_RU.iso88595
ru_RU.utf8
sv_SE
sv_SE.iso88591
sv_SE.utf8
swedish
tg_TJ.utf8

Running webservices will need to be restarted to pick up the change.