Sign inSign up

krazakee/opengrok

By krazakee

•Updated almost 8 years ago

Opengrok with externalized jdk, universal ctags and git 2.15

Image
4

1.8K

krazakee/opengrok repository overview

⁠Features

  • Opengrok up to 1.1 Release
  • Tomcat 9
  • Externalized JDK ( Yes, you'll need to mount the Linux version of JDK yourself. It is NOT A BUG. )
  • Universal ctags ( built on 2018-10-19 )
  • Git 2.15 ( to avoid date format parsing error in opengrok version 1.1 )

⁠Usage

⁠Start up

docker run -it -d --name opengrok \
    -p <EXTERNAL PORT>:8080 \
    -v <LINUX JDK HOME>:/usr/lib/jvm \
    -v <OPENGROK DATA FOLDER>:/var/opengrok \
    krazakee/opengrok:1.1
  • You can access OpenGrok in browser with http://localhost:<EXTERNAL PORT>/source

⁠Build Index

  1. If you haven't done so, check out source code in <OPENGROK DATA FOLDER>/src
  2. Make sure the container has been started up
  3. Run
  • 1.1rc22 or above (Including 1.1)
docker exec opengrok bash -c "/reindex.sh"

With 1.1rc61 or above (including 1.1), you can also build index without history (faster)

docker exec opengrok bash -c "/reindex-no-history.sh"

  • before 1.1rc22
docker exec opengrok bash -c "/opengrok/bin/OpenGrok index"

⁠Pull all git repositories

Started from the 1.1rc22 build, you can run the following command to pull all the git clones in the source folder

docker exec opengrok bash -c "/git-pull-all.sh"

Tag summary

Content type

Image

Digest

Size

201.8 MB

Last updated

almost 8 years ago

docker pull krazakee/opengrok