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
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
Java runtime options used when the start
, run
or debug
command is executed.
Default value: ''
Java runtime options used when the jpda start
Default value: ''
tompcat shutdown port.
Default value: 8005
Source defintion used by opengrok.update-source
.
Each source config has to contain at least name
and type
fields, and exta fields based on a given type
.
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 string
: repository url
type string
: repository branch
Repo repository.
Additional configs:
type string
: repository url
type string
: repository branch
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
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.
Examples of configuration using snap set
.
java
$ snap set opengrok java.max-mem="1024MB"
opengrok
$ snap set opengrok opengrok.http-port="8040"
source
$ 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"
]
}'
dpkg.list
.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]