-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Install dependency. | ||
USER root | ||
RUN wget http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2 \ | ||
&& tar xvf scws-1.2.3.tar.bz2 \ | ||
&& cd scws-1.2.3 \ | ||
&& ./configure \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf scws-1.2.3.tar.bz2 scws-1.2.3 \ | ||
&& ln -s /usr/local/lib/libscws.so /usr/lib/x86_64-linux-gnu/libscws.so | ||
|
||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "V$(perl -E 'print shift =~ s/[.]0$//gr' "${EXTENSION_VERSION}")" https://github.com/amutu/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[extension] | ||
name = "zhparser" | ||
version = "2.2.0" | ||
repository = "https://github.com/amutu/zhparser" | ||
license = "PostgreSQL" | ||
description = "PostgreSQL extension for full-text search of Chinese language." | ||
documentation = "https://github.com/amutu/zhparser" | ||
categories = ["search"] | ||
|
||
[dependencies] | ||
apt = ["libc6"] | ||
|
||
[build] | ||
postgres_version = "17" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = "make -C zhparser install" |