pgroonga | PostgreSQL extension to use Groonga | Search Engine library
kandi X-RAY | pgroonga Summary
kandi X-RAY | pgroonga Summary
PGroonga makes PostgreSQL fast full text search platform for all languages!.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pgroonga
pgroonga Key Features
pgroonga Examples and Code Snippets
Community Discussions
Trending Discussions on pgroonga
QUESTION
I'm just following the instructions here for installing the pgroonga add-on for Postgres but when I get to this step:
% psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga;'
I get the following error:
ERROR: could not open extension control file "/Applications/Postgres.app/Contents/Versions/9.6/share/postgresql/extension/pgroonga.control": No such file or directory
I assume it's looking in the wrong location since I installed Postgres with the app and pgroonga using brew. I also tried building pgroonga from source and completely re-installing Postgres. Nothing seems to work.
If anyone could point me into the right direction it would be greatly appreciated. And thanks in advance for helping out a newb!
...ANSWER
Answered 2017-Aug-17 at 13:49When you build from sources, make sure your PATH contains PostgresApp binary installation:
QUESTION
If use the official postgres image:
https://hub.docker.com/_/postgres/
is a simple way to use PostgreSQL database.
But if I need to use some PostgreSQL extention such as pgroonga:
How to add this to that official PostgreSQL image?
Run that image as a container, then sign in to it add extention, finally make a new image? Is it possible?
If there exists a official pgroonga image will be good, but there isn't now:
https://hub.docker.com/u/groonga/
The last way, make a image for groonga, the links to postgres container when run the full stack.
Which way is good to such a case when using container to deploy mordern web application?
...ANSWER
Answered 2017-Jul-07 at 07:54You should have a look (let us suppose you will use Debian) at
https://pgroonga.github.io/install/debian.html
So you have some commands to launch, so more or less such a Dockerfile should do the trick
FROM postgres
RUN apt udate -y && apt install -y -V apt-transport-https \
&& echo "deb https://packages.groonga.org/debian/ jessie main" >> /etc/apt/sources.list.d/groonga.list \
&& echo "deb-src https://packages.groonga.org/debian/ jessie main" >> /etc/apt/sources.list.d/groonga.list \
&&...
I guess you see the method
Remember that in a Dockerfile, you can't answer "Yes" or "no" to any command, so you must automate all the commands. If you can't automate all, you can do some part, get an image, launch it with a bash prompt (or sh or zsh...), do interactively the needed commands hard to automate, and then you
docker commit
see the doc
https://docs.docker.com/engine/reference/commandline/commit/
also, in a Dockerfile, by default, you are root, so no need to sudo
unless you use the Dockerfile directive
USER myuser
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pgroonga
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page