Sign inSign up

rtk4616/opengrok

By rtk4616

•Updated over 7 years ago

Image
0

869

rtk4616/opengrok repository overview

⁠A Docker container for OpenGrok

This docker is based on official OpenGrok docker(opengrok/docker), but support projects managed by repo, such as Android Open Source Projects.

⁠Download from Docker Hub

docker pull oakchen/opengrok

⁠Usage

docker run -d --restart=always -p 8090:8080 -v /path/to/source_root:/opengrok/src oakchen/opengrok

Also, you can specify a directory to store index data, if you don't do this, /opengrok/data inside container will be used.

docker run -d --restart=always -p 8090:8080 -v /path/to/source_root:/opengrok/src -v /path/to/index_root:/opengrok/data oakchen/opengrok

The container has OpenGrok as default web app installed (accessible directly from /). With the above container setup, you can find it running on

http://dockerhost:8090/⁠

Please note: on first startup, the web interface will display empty content until the indexing has been completed. Give it some time (depending on the amount of data indexed - might take many hours for large code bases !) and reload.

The subsequent reindex will be incremental so will take signigicantly less time.

⁠Configurable parameters by environment variables

INDEXER_OPT ""	# Specify index options, such as ignore files: "-i *.dat -i d:out"
REINDEX     10	# The index will be rebuild every ten minutes

⁠Others

The sources are re-indexed at 00:30:00 every day, if projects are managed by repo, the sources are synced before re-indexing. And if the source code is used to build, we should ignore the out directory usually.

If you mapped source directory uses soft link, please map the real path too.

If SSH key is needed to sync source, please copy the key to /root/.ssh.

There is a wrapped shell script to run this docker: https://github.com/OakChen/opengrok/raw/master/run.sh⁠.

Tag summary

Content type

Image

Digest

Size

483.1 MB

Last updated

over 7 years ago

docker pull rtk4616/opengrok