tree: b26c903b498cbc2dfa78a972b9c15906d48c063d [path history] [tgz]
  1. etc/
  2. add_secrets_aws_secrets_manager.sh
  3. Dockerfile
  4. entrypoint.sh
  5. Makefile
  6. README.md
  7. requirements.txt
  8. setup_gerrit.py
  9. ssh-config
gerrit/README.md

Gerrit Docker image

This project defines the Docker image to be used with the AWS recipes, as described in the main README.

Generate Python requirements file

Occasionally, we need to update the Python dependencies. This could be due to upgrading the base image, or we may just want to upgrade the libraries.

Follow these steps to generate a new requirements file for reproducible builds.

# This needs to match the base image of the Gerrit build
docker run --rm -it almalinux:9 bash

yum install python3 python3-libs python3-devel python3-pip

cd
python3 -m venv venv

source venv/bin/activate

# These are our direct dependencies
pip install boto3==1.23.10 jinja2==2.11.1 awscli==1.24.10

# Required for compatibility with the pinned version of jinja2
pip install markupsafe==2.0.1

pip freeze > requirements.in

python3 -m pip install pip-tools
pip-compile --generate-hashes requirements.in