tree: cd34b3be56a1611c40aebbd94ea54708aae8eb8d [path history] [tgz]
  1. config/
  2. dependencies/
  3. tools/
  4. .dockerignore
  5. Dockerfile
  6. README.md
  7. requirements.in
  8. requirements.txt
container-images/gerrit-init/README.md

Gerrit replica init container image

Kubernetes init container for initializing gerrit. The python script running in the container initializes Gerrit including the installation of configured plugins.

Content

  • gerrit-base image

Setup and configuration

  • install python 3
  • copy tool scripts

Start

  • start the container via start script python3 /var/tools/gerrit-initializer init

The main.py init-command

  • reads configuration from gerrit.config (via gerrit_config_parser.py)
  • initializes Gerrit

The main.py validate_notedb-command

  • validates and waits for the repository All-Projects.git with the refs refs/meta/config.
  • validates and waits for the repository All-Users.git with the ref refs/meta/config.