Sign inSign up

softlang/postgres-cn

By softlang

Updated 7 months ago

From postgres , to support chinese LC.

Image
Databases & storage
1

2.1K

softlang/postgres-cn repository overview

基于官方 13.1版本构建的支持中文的postgresql13.1

docker run -d \
    --name some-postgres \
    -e POSTGRES_PASSWORD=mysecretpassword \
    -e PGDATA=/var/lib/postgresql/data/pgdata \
    -v /custom/mount:/var/lib/postgresql/data \
    softlang/postgres-cn:13.2
  • Dockerfile 文件
FROM postgres:13.1
RUN localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8
ENV LANG zh_CN.utf8
  • Dockerfile for v10.22
# docker build --network host --force-rm -f Dockerfile -t softlang/postgres-cn:10.22 .
# docker run -itd --rm --name pg14 -e POSTGRES_PASSWORD=123654 softlang/postgres-cn:10.22
# 支持中文的postgresql-10.22
FROM postgres:10.22-bullseye
RUN localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8
RUN apt-get update \
	&& apt-get install -y postgresql-10-mysql-fdw postgresql-10-cron

RUN rm -rf /var/lib/apt/lists/* \
    && apt-get clean

ENV LANG zh_CN.utf8
LABEL softlang_pg_features="postgresql-10-mysql-fdw,postgresql-10-cron"

Tag summary

Content type

Image

Digest

sha256:14a75d69b

Size

184.4 MB

Last updated

7 months ago

docker pull softlang/postgres-cn:18-bookworm