kubiko / opengrok-snap

2 stars 1 forks source link

OpenGrok packaged as a snap for Ubuntu core. It consists of:

Suported snap applications:

Suported snap settings keys:

OpenGrok supports settings keys. Vvalues can be changed by calling:
$ snap set opengrok <key name>='<key value>'
List of supported keys:

snap configure examples.

Examples of configuration using snap set.

Configure java

$ snap set opengrok java.max-mem="1024MB"

Configure opengrok

$ snap set opengrok opengrok.http-port="8040"

Configure 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"
            ]
    }'



Helper to import from 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]