- OpenGrok runtime
- OpenGrok tools
- Tomcat
- Helper tools to manage index
- runtime dependencies:
- java openJDK runtime
- universal ctags
- Tomcat native bindigs
- git. bazaar, mercirial,...
-
Helper to add new prokect to the index. First project is added using projadm, then indexed with indexer and finally index config is replaced with new one and webapp is redeployed
-
Invocation of
opengrok-tools/bin/opengrok-config-merge
. For detailed help run:opengrok.config-merge --help
-
Invocation of
opengrok-tools/bin/opengrok-deploy
. For detailed help run:opengrok.deploy --help
-
Invocation of
opengrok-tools/bin/opengrok-groups
. For detailed help run:opengrok.groups --help
-
Help info and current snap config informations.
-
Helper to index all the project in src root directory. Internally
opengrok.indexer
is used with appropriatery parameters -
Invocation of
opengrok-tools/bin/opengrok-indexer
. For detailed help run:opengrok.indexer --help
-
Invocation of
opengrok-tools/bin/opengrok-java
. For detailed help run:opengrok.java --help
-
Invocation of
opengrok-tools/bin/opengrok-mirror
. For detailed help run:opengrok.mirror --help
-
Invocation of
opengrok-tools/bin/opengrok-projadm
. For detailed help run:opengrok.projadm --help
-
Invocation of
opengrok-tools/bin/opengrok-reindex-project
. For detailed help run:opengrok.reindex-project --help
-
Invocation of
opengrok-tools/bin/opengrok-sync
. For detailed help run:opengrok.sync --help
-
Helper to import source definition from
dpkg.list
.
For detailed help run:opengrok.import-dpkg-list --help
.
Use:$ cat /snap/core20/current/usr/share/snappy/dpkg.list | sudo opengrok.import-dpkg-list <project name> <Ubuntu series> [list of source packages to ignore]
-
Helper script to invoke update source helper.
There is default src-updater script wich takes input snap config.
See configured sources with$ snap get -d opengrok sources
.
Warning:/var/snap/opengrok/common/source.conf
config file has been deprecated and existing content from/var/snap/opengrok/common/source.conf
has been imported into snap config.
Custom source updater can be provided using 'src-updater' content interface'.
Example of custom source updater is here: https://github.com/kubiko/opengrok-src-updater.
OpenGrok supports settings keys. Vvalues can be changed by calling:
$ snap set opengrok <key name>='<key value>'
List of supported keys:
-
-
Additional JVM options.
Default value: '' -
Maximum memory for the JVM.
Default value:512M
-
Minimum memory for the JVM.
Default value:128M
-
Additional JVM options.
-
-
Automatically rebuild index when new version is installed. Permited values: ON/OFF.
Default value:ON
-
http port OpenGrok's tomcat webserver is exposed on, atter change restart service.
Default value:8080
-
https port OpenGrok's tomcat webserver is exposed on, atter change restart service.
Default value:8443
-
Data directory OpenGrok will index.
Default value:${SNAP_COMMON}/data
-
Source directory OpenGrok will index.
Default value:${SNAP_COMMON}/src
-
Name of ssh-key(s) to load, comma separated file names or full file paths.
Default value:id_rsa
-
web app name at which indexer is exposed.
Default value:source
-
Automatically rebuild index when new version is installed. Permited values: ON/OFF.
-
-
Java runtime options used when the
start
,run
ordebug
command is executed.
Default value: '' -
Java runtime options used when the
jpda start
Default value: '' -
tompcat shutdown port.
Default value:8005
-
Java runtime options used when the
-
Source defintion used by
opengrok.update-source
.
Each source config has to contain at leastname
andtype
fields, and exta fields based on a giventype
.-
type
string
: name of the project. -
type
string
: type of given source definition.
Supported types:-
Single git repository.
Additional configs:-
type
string
: repository url -
type
string
: repository branch
-
type
- bzr:
Bazaar repository.
Additional configs:-
type
string
: repository url -
type
string
: repository branch
-
type
-
Repo repository.
Additional configs:-
type
string
: repository url -
type
string
: repository branch
-
type
-
List of deb packages.
Additional configs:-
type
string array
: list of deb packages -
type
string
: ubuntu series -
type
string array
: list of source packages to ignore
-
type
-
Collection of germinate lists.
Additional configs:-
type
string
: base germinate url. -
type
string array
: list of germinate list, without base url. -
type
string array
: list of source packages to ignore.
-
type
-
Single git repository.
-
type
Examples of configuration using snap set
.
$ snap set opengrok java.max-mem="1024MB"
$ snap set opengrok opengrok.http-port="8040"
$ snap set opengrok sources.opengrok='{
"name":"opengrok",
"type":"git",
"url":"https://github.com/oracle/opengrok.git",
"branch":"master"
}'
$ snap set opengrok sources.core20='{
"name":"core20",
"type":"deb",
"series":"focal",
"debs":[
"grep",
"gzip",
"python3-newt"
],
"ignore-packages":[
"newt"
]
}'
$ snap set opengrok sources.core20='{
"name":"core20",
"type":"germinate",
"url":"https://people.canonical.com/~ubuntu-archive/germinate-output/ubuntu.focal",
"germinate-lists":[
"server",
"server.seed"
],
"ignore-packages":[
"newt"
]
}'
Included parser import-dpkg-list
simplifies import of deb packages definition from dpkg.list
file.
$ cat /snap/core20/current/usr/share/snappy/dpkg.list \
| sudo opengrok.import-dpkg-list <project name> <Ubuntu series> [list of source packages to ignore]