Build Scripts for Nginx
This package helps you quickly and easily build Nginx and Nginx Mainline on your system. This package bundles several commonly used Nginx and OpenResty modules, as well as the most up to date OpenSSL and PCRE versions. If this package doens't help you install or package Nginx, there's a bug in this package.
Building & Packaging
Tested on Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04, CentOS7, Alpine 3.6, Alpine 3,.7
The preferred way of building PHP is to use build and package them within Docker, and then to install PHP from the packages it provides. This allows you to build PHP in an environment isolated from your own, and allows you to install PHP through your package manager, rather than through source. This approach requires both
docker-compose to be installed. (see https://docs.docker.com/).
Install Docker (https://docs.docker.com/engine/installation/)
Install Docker Composer 1.8.0+ (https://docs.docker.com/compose/install/)
Create a source file that specifies the PHP version you want to build for. This file is called
export VERSION=<NGINX_VERSION> export RELEASEVER=1
Build PHP-FPM by running
docker-compose, and specifying the platform you want to build for
docker-compose run <truty|xenial|bionic|centos7|rhel7|alpine3.6|alpine3.7>
Note all packages are build for x86_64. x86, armv6l, and armv7l images are not supported.
STABLE vs MAINLINE
This package builds two different version of nginx,
MAINLINE, and is dependant upon the version specified in the
<version> tag. Nginx follows the convention of even numbered builds belonging to
STABLE and odd number builds belonging to