GithubHelp home page GithubHelp logo

lgs / docker-bleve-wiki-indexer Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 11 KB

Dockerizing bleve library to build an index of the bleve wiki

Home Page: https://registry.hub.docker.com/u/lgsd/docker-bleve-wiki-indexer/

License: MIT License

docker-bleve-wiki-indexer's Introduction

docker-bleve-wiki-indexer

Dockerizing bleve library to build an index of the bleve wiki. See wikisearch online example and his bleve-wiki-indexer source code. See also the amazing blevesearch.com.

Use

$ docker run -i -p 8099:8099 -t lgsd/docker-bleve-wiki-indexer bash
root@1c1532dec11f:/#

This way, you are pulling a Trusted Docker Image from public Docker Hub. Now run bleve-wiki-indexer from source directory to ensure the static content is found by default (read more here)

root@1c1532dec11f:/# cd $GOPATH/src/github.com/blevesearch/bleve-wiki-indexer
root@1c1532dec11f:/gopath/src/github.com/blevesearch/bleve-wiki-indexer# bleve-wiki-indexer -dir /data/bleve.wiki
2016/01/24 17:41:42 Creating new index...
2016/01/24 17:41:42 watching '/data/bleve.wiki' for changes...
2016/01/24 17:41:42 updated: /data/bleve.wiki/ANSI Result Match Highlighter.md
2016/01/24 17:41:42 checking commit 155f99bcfa0e1ee7ea395a2df1eeec0dad21efee
2016/01/24 17:41:42 checking commit 1a1083b7093e79890dc480d2b9dad0112a43ffbd
...
2016/01/24 17:41:48 gravatar hash is: 16cdfb0c4af5297e261cb36e30fa5c20
2016/01/24 17:41:48 Listening on :8099

open your browser at http://localhost:8099/, or do curl to check it works:

$ curl localhost:8099
<a href="/static/index.html">Found</a>.

You can also build by forking/downloading the repo then run docker interactive like before:

$ git clone https://github.com/lgs/docker-bleve-wiki-indexer && cd docker-bleve-wiki-indexer
$ docker build -t lgsd/docker-bleve-wiki-indexer --rm=true .
$ docker run -i -p 8099:8099 -t lgsd/docker-bleve-wiki-indexer bash
root@1c1532dec11f:/#

Now proceed as before, running bleve-wiki-indexer from source directory ...

root@1c1532dec11f:/# cd $GOPATH/src/github.com/blevesearch/bleve-wiki-indexer
root@1c1532dec11f:/gopath/src/github.com/blevesearch/bleve-wiki-indexer# bleve-wiki-indexer -dir /data/bleve.wiki
2016/01/24 17:41:42 Creating new index...
2016/01/24 17:41:42 watching '/data/bleve.wiki' for changes...
2016/01/24 17:41:42 updated: /data/bleve.wiki/ANSI Result Match Highlighter.md
2016/01/24 17:41:42 checking commit 155f99bcfa0e1ee7ea395a2df1eeec0dad21efee
2016/01/24 17:41:42 checking commit 1a1083b7093e79890dc480d2b9dad0112a43ffbd
...
2016/01/24 17:41:48 gravatar hash is: 16cdfb0c4af5297e261cb36e30fa5c20
2016/01/24 17:41:48 Listening on :8099

First time you build without having any previous intermediate image locally (like google/golang for example), it could take more then 5 minutes to pull & build everithing, so take it easy and relax. In my case, having google/golang already present, I spent 3m14.457s.

Copyright

Copyright (c) 2014 Luca G. Soave

docker-bleve-wiki-indexer's People

Contributors

lgs avatar

Stargazers

Alexander I.Grafov avatar Rob Wright avatar  avatar

Watchers

James Cloos avatar  avatar

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.