2022-04-16 03:18:24 +02:00
|
|
|
# This is a multiarch Dockerfile. See https://docs.docker.com/desktop/multi-arch/
|
|
|
|
#
|
|
|
|
# To set up the first time:
|
|
|
|
# docker buildx create --name multiarch --use
|
|
|
|
#
|
|
|
|
# To build:
|
|
|
|
# docker buildx build --platform linux/amd64,linux/arm64 \
|
|
|
|
# -f ./Dockerfile-postgresql -t zulip/zulip-postgresql:14 --push .
|
2018-05-16 01:04:50 +02:00
|
|
|
|
2020-10-26 22:27:53 +01:00
|
|
|
# Currently the PostgreSQL images do not support automatic upgrading of
|
2018-05-16 01:04:50 +02:00
|
|
|
# the on-disk data in volumes. So the base image can not currently be upgraded
|
|
|
|
# without users needing a manual pgdump and restore.
|
|
|
|
|
2022-02-28 11:21:29 +01:00
|
|
|
# https://hub.docker.com/r/groonga/pgroonga/tags
|
|
|
|
ARG PGROONGA_VERSION=latest
|
|
|
|
ARG POSTGRESQL_VERSION=14
|
|
|
|
FROM groonga/pgroonga:$PGROONGA_VERSION-alpine-$POSTGRESQL_VERSION-slim
|
|
|
|
|
2020-10-23 02:43:28 +02:00
|
|
|
# Install hunspell, Zulip stop words, and run Zulip database
|
2018-05-16 01:04:50 +02:00
|
|
|
# init.
|
2019-12-26 12:42:23 +01:00
|
|
|
RUN apk add -U --no-cache hunspell-en
|
2022-04-16 02:51:05 +02:00
|
|
|
RUN ln -sf /usr/share/hunspell/en_US.dic /usr/local/share/postgresql/tsearch_data/en_us.dict && ln -sf /usr/share/hunspell/en_US.aff /usr/local/share/postgresql/tsearch_data/en_us.affix
|
2019-12-26 12:42:23 +01:00
|
|
|
COPY puppet/zulip/files/postgresql/zulip_english.stop /usr/local/share/postgresql/tsearch_data/zulip_english.stop
|
2019-07-16 02:04:33 +02:00
|
|
|
COPY scripts/setup/create-db.sql /docker-entrypoint-initdb.d/zulip-create-db.sql
|
|
|
|
COPY scripts/setup/create-pgroonga.sql /docker-entrypoint-initdb.d/zulip-create-pgroonga.sql
|