Skip to content

Commit a6bd084

Browse files
committed
Added Postgres 11
1 parent 2d07593 commit a6bd084

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

11/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM postgres:11
2+
3+
ENV LANG cs_CZ.utf8
4+
5+
COPY ./ext/unaccent/czech_unaccent.tar.gz /tmp
6+
COPY ./init-scripts/* /docker-entrypoint-initdb.d/
7+
8+
RUN localedef -i cs_CZ -c -f UTF-8 -A /usr/share/locale/locale.alias cs_CZ.UTF-8 && \
9+
cd /tmp && tar xvzf czech_unaccent.tar.gz && \
10+
cp fulltext_dicts/* /usr/share/postgresql/11/tsearch_data && \
11+
rm -rf /tmp/*
919 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CREATE TEXT SEARCH DICTIONARY cspell
2+
(template=ispell, dictfile = czech_unaccent, afffile=czech_unaccent, stopwords=czech_unaccent);
3+
CREATE TEXT SEARCH CONFIGURATION cs (copy=english);
4+
ALTER TEXT SEARCH CONFIGURATION cs
5+
ALTER MAPPING FOR word, asciiword WITH cspell, simple;
6+
CREATE EXTENSION unaccent;

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Postgres
22

3-
Tuned PostgreSQL 10 docker image.
3+
Tuned PostgreSQL 10/11 docker image.
44

55
- configured unaccent for Czech language
66

@@ -15,12 +15,13 @@ Tuned PostgreSQL 10 docker image.
1515

1616
## Versions
1717

18-
- PostgreSQL 10
18+
- PostgreSQL 10/11
1919

2020
## Usage
2121

2222
```sh
2323
docker run --rm -it -p 5432:5432 dockette/postgres:10
24+
docker run --rm -it -p 5432:5432 dockette/postgres:11
2425
```
2526

2627
## Test

0 commit comments

Comments
 (0)