Sign inSign up

hawliczek/pg_de

By hawliczek

Updated almost 11 years ago

extends postgres with ENV LANG de_DE.utf8 (postgres_de)

Image
1

336

hawliczek/pg_de repository overview

extends postgres (postgres_de) ; https://github.com/docker-library/docs/tree/master/postgres: " If you would like to do additional initialization in an image derived from this one, add a .sql or .sh script under /docker-entrypoint-initdb.d (creating the directory if necessary). After the entrypoint calls initdb to create the default postgres user and database, it will run any .sql files and source any .sh script found in that directory to do further initialization before starting the service.

You can also extend the image with a simple Dockerfile to set the locale. The following example will set the default locale to de_DE.utf8:

FROM postgres:[latest|9.3] RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8 ENV LANG de_DE.utf8

Since database initialization only happens on container startup, this allows us to set the language before it is created. "

Tag summary

Content type

Image

Digest

sha256:bfaa4f85e

Size

96.2 MB

Last updated

almost 11 years ago

docker pull hawliczek/pg_de