Sign inSign up

ttimasdf/opengrok

By ttimasdf

•Updated almost 9 years ago

The one-liner to spin up a code search engine, stays latest

Image
1

3.5K

ttimasdf/opengrok repository overview

⁠OpenGrok for Docker Build Status

The one-liner to spin up a code search engine

The latest tag query the Github API and download the latest release at RUNTIME, while the tagged version have pre-downloaded binary when building images. Choose wisely ;-p

OpenGrok⁠ is a code search engine made by Sun (and now Oracle).

It provides similar functions to LXR⁠ but much more. This project encapsulated OpenGrok into a docker container, allowing you to start an instance of OpenGrok by one command.

⁠Docker Image

⁠Usage

To start the OpenGrok, simply run:

docker run -d -v [source to be indexed on host]:/src -p [public port]:8080 ttimasdf/opengrok

It may take a while for the indexer to finish the first-time indexing, after that, the search engine is available at http://host:[public port]/source/.

⁠Note

The project supports dynamic index updating through inotifywait recursively on the source folder. This can be disabled with the environment variable INOTIFY_NOT_RECURSIVE at runtime. Also, if you have more than 8192 files to watch, you will need to increase the amount of inotify watches allowed per user (/proc/sys/fs/inotify/max_user_watches) on your host system.

NOTE: touch doesn't trigger inotify. You should add, delete or modify the content of some source file to make it happen.

Tag summary

Content type

Image

Digest

Size

273.7 MB

Last updated

almost 9 years ago

docker pull ttimasdf/opengrok