commit | 1f041537bc66f1102ae46395e10fd445b4b5d803 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri May 13 18:35:25 2022 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Sat May 14 15:42:13 2022 +0000 |
tree | b0694bcabf00734be5cde7fddfe00b7b81e7c2ed | |
parent | db42aed7078def8553fd2071409edaae5abc1a86 [diff] |
Adapt Bazel build and deps to latest stable-3.5 The latest stable-3.5 has removed all the leftover of dependencies from testcontainer and docker-java which needs to be part of this plugin instead. Also fix formatting of build files with buildifier. Change-Id: Ic795dd62c1d382ec4e451e4f0ffc3d2365f3a074
Indexing backend libModule for Gerrit Code Review based on ElasticSearch.
This module was original part of Gerrit core and then extracted into a separate component from v3.5.0-rc3 as part of Change-Id: Ib7b5167ce.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
Install the index-elasticsearch.jar into the $GERRIT_SITE/lib
directory.
Add the index-elasticsearch module to $GERRIT_SITE/etc/gerrit.config
as follows:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ElasticIndexModule
When installing the module on Gerrit replicas, use following example:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ReplicaElasticIndexModule
For further information and supported options, refer to config documentation.
Gerrit acceptance tests allow the execution with an alternate implementation of the indexing backend using the GERRIT_INDEX_MODULE
environment variable.
bazel test --test_env=GERRIT_INDEX_MODULE=com.google.gerrit.elasticsearch.ElasticIndexModule //...