Giter Club home page Giter Club logo

docker_zhparser's People

Contributors

abcfy2 avatar catme0w avatar chen-xin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker_zhparser's Issues

debian image error init-zhparser.sql ERROR: syntax error at or near "-"

[root@sb470 ~]# /usr/bin/podman run -e POSTGRES_PASSWORD=password -it docker.io/abcfy2/zhparser:15
Trying to pull docker.io/abcfy2/zhparser:15...
Getting image source signatures
Copying blob b74279c188d9 skipped: already exists
...
pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2023-09-08 09:04:39.665 UTC [44] LOG: starting PostgreSQL 15.4 (Debian 15.4-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2023-09-08 09:04:39.667 UTC [44] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-09-08 09:04:39.674 UTC [47] LOG: database system was shut down at 2023-09-08 09:04:37 UTC
2023-09-08 09:04:39.680 UTC [44] LOG: database system is ready to accept connections
done
server started

/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init-zhparser.sql
2023-09-08 09:04:39.890 UTC [55] ERROR: syntax error at or near "-" at character 1
2023-09-08 09:04:39.890 UTC [55] STATEMENT: -e CREATE EXTENSION IF NOT EXISTS pg_trgm;
psql:/docker-entrypoint-initdb.d/init-zhparser.sql:1: ERROR: syntax error at or near "-"
LINE 1: -e CREATE EXTENSION IF NOT EXISTS pg_trgm;
^



[root@sb470 ~]# /usr/bin/podman run -e POSTGRES_PASSWORD=password -it docker.io/abcfy2/zhparser:15 cat /docker-entrypoint-initdb.d/init-zhparser.sql
-e CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS zhparser;
DO
$$BEGIN
CREATE TEXT SEARCH CONFIGURATION chinese_zh (PARSER = zhparser);
ALTER TEXT SEARCH CONFIGURATION chinese_zh ADD MAPPING FOR n,v,a,i,e,l,t WITH simple;
EXCEPTION
WHEN unique_violation THEN
NULL; -- ignore error
END;$$;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.