You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A tool to build deb or rpm package of required Nginx version from the source code, with the ability to connect third-party modules. Nginx parameters are set in the yaml configuration file.
Tool for building deb or rpm package [Nginx] (https://nginx.org/) of the required version from the source code, with the ability to connect third-party modules.
Nginx parameters are set in the configuration file of yaml format.
RU
Инструмент для сборки deb или rpm пакета Nginx требуемой версии из исходных кодов, с возможностью подключения сторонних модулей.
Параметры Nginx задаются в конфигурационном файле формата yaml.
You can start the assembler both directly on the host machine and in the docker container, for example
RU
Запускать сборщик можно, как непосредственно на хост машине, так и в docker контейнере, например
Example run/Пример запуска в docker образе "ubuntu-latest" или "centos-latest
docker run --rm -it -v $(pwd):/nginx-builder:rw tinkoffcreditsystems/nginx-builder:centos-latest /bin/bash
docker run --rm -it -v $(pwd):/nginx-builder:rw tinkoffcreditsystems/nginx-builder:ubuntu-latest /bin/bash
Конфигурация
ENG
The main configuration file is in yaml format. Description of parameters:
---
nginx_version: the necessary version of nginxoutput_package: type of output package deb or rpmmodules:
- module:
name: The name of the module. If not specified, taken from the last part of the URLgit_url: git file URLgit_tag: The name of the tag. (Optional)git_branch: The name of the branch. (Optional). If neither tag nor branch is specified, the master branch is taken by defaultpatch: Relative path to patch for source code. (Optional)dependencies:
- list of dependencies for building the module (Optional)module:
name: The name of the module. If not specified, taken from the last part of the URLweb_url: Link to the archive with the module source codemodule:
name: The name of the module. If not specified, taken from the last part of the URLlocal_url: Path to the module source code archivemodule:
name: The name of the embedded moduletype: embedded configure_params: list of custom build parameters
The configuration file with advanced settings is located in src/config.py. In most cases it does not need to be changed.
RU
Основной конфигурационный файл в yaml формате. Описание параметров:
---
nginx_version: необходимая версия nginxoutput_package: тип выходного пакета deb или rpmmodules:
- module:
name: Название модуля. Если не указано, берется из последней части URLgit_url: URL git файлаgit_tag: название тэга. (Не обязательно)git_branch: название ветки. (Не обязательно). Если не указан ни tag, ни branch по умолчанию берется master веткаpatch: Относительный путь к патчу для исходного кода. (Не обязательно).dependencies:
- список зависимостей для сборки модуля (Не обязательно)module:
name: Название модуля. Если не указано, берется из последней части URLweb_url: Ссылка на архив с исходным кодом модуляmodule:
name: Название модуля. Если не указано, берется из последней части URLlocal_url: Путь к архиву с исходным кодом модуляmodule:
name: Название модуля встроенного модуляtype: embeddedconfigure_params: список дополнительных параметров сборки
Конфигурационный файл с расширенными настройками расположен в src/config.py. В большинстве случаев менять его не нужно.
Manual script execution/Ручной запуск скрипта
Requirements/Требования
python >= 3.5
ENG
You will also need packages to compile Nginx. Their list can be seen in the Dockerfile.
номер ревизии опциональный параметр, служит для версионирования сборок
About
A tool to build deb or rpm package of required Nginx version from the source code, with the ability to connect third-party modules. Nginx parameters are set in the yaml configuration file.