toniher / docker-couchdb-lucene Goto Github PK
View Code? Open in Web Editor NEWDocker for CouchDB Lucene
License: Apache License 2.0
Docker for CouchDB Lucene
License: Apache License 2.0
docker run -it toniher/couchdb-lucene:latest
./bin/run: 16: exec: java: not found
Good evening,
I've been trying for some time to configure lucene with couchdb with this image of yours.
I don't understand how the integration works, but after a lot of searching I managed to set up an environment with his image.
But, I'm not sure it's working. Lucene is opening, but I can't do any tests. leaving me in doubt if the integration is really working.
VIEW
function (doc) {
if (doc.$typedoc === 'module') {
emit(doc.nome.toLowerCase() + " - " + doc.descricao, null);
}
}
INDEXES
{
"_id": "_design/modules",
"fulltext": {
"by_nome": {
"index": "function(doc) { var ret=new Document(); ret.add(doc.nome, { field: 'nome', store: 'yes'}); return ret }"
}
}
}
lucene-proxy.ini
[httpd_global_handlers]
_fti = {couch_httpd_proxy, handle_proxy_req, <<"http://couchdb-lucene:5985">>}
DOCKER COMPOSE
couchdb:
container_name: couchdb-dev
image: couchdb:latest
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=admin
ports:
- '5984:5984'
volumes:
- couchdb_data:/opt/couchdb/data
- ./.docker/dev/couchdb/lucene-proxy.ini:/opt/couchdb/etc/local.d/lucene-proxy.ini
networks:
- interna
- externa
couchdb-lucene:
container_name: couchdb-lucene-dev
image: toniher/couchdb-lucene:2.1.0
restart: always
environment:
- COUCHDB_PORT=5984
- COUCHDB_SERVER=couchdb
ports:
- '5985:5985'
volumes:
- ./.docker/dev/couchdb/indexes/:/opt/couchdb-lucene/indexes/
links:
- couchdb
networks:
- interna
- externa
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.