-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting custom LANG value for database during creation #3
Comments
Not sure I'll have to have a look, pretty certain the image will need updating as it's old. |
Just had a look into this, if we wanted to change to Spanish (es_ES); If we create the following Dockerfile
The we build the container
Then we can run the container
Then we check the locale in the running container
Gives the following results
It looks to have change the locale in the db, will need checking further then maybe we can add it into the image without having to rebuild and specify at run time instead. |
I would be able to create database using custom encoding, not default
en_GB.utf8
.Here
alpine-postgres/alpine-postgres-amd64/Dockerfile
Line 21 in 8d24aed
I see constant value
en_GB.utf8
, but expected to see evaluation of externally set value forLANG
and falling back toen_GB.utf8
if it was not set from outside.Will it work if I set value for
LANG
inPOSTGRES_INITDB_ARGS
as described inhttps://github.com/yobasystems/alpine-postgres/blob/master/README.md)?
The text was updated successfully, but these errors were encountered: