GithubHelp home page GithubHelp logo

dbezemer / rpm-haproxy Goto Github PK

View Code? Open in Web Editor NEW
158.0 14.0 112.0 176 KB

HAproxy RPM spec and builds for CentOS/RHEL 6/7/8

Home Page: http://www.haproxy.org/

License: GNU General Public License v3.0

Makefile 44.48% Shell 28.00% Roff 27.52%
haproxy load balancer proxy rpm centos amazon-linux

rpm-haproxy's Introduction

Github All Releases Build RPMs

This repository contains build artifacts of HAproxy that are provided with no support and no expectation of stability. The recommended way of using the repository is to build and test your own packages. Latest Work-in-Progress builds can be found under release label "WiP RPM Build".

RPM Specs for HAproxy on CentOS / RHEL / Amazon Linux with syslog logging to separate output files

Contributing

When you like to see a specific feature added RPM build process, or support other RPM based Operating Systems please create a Pull Request if you have the knowledge to develop this yourself, I will verify the build process with these changes and merge in upstream when finished. If you don't have the knowledge feel free to create an Issue with the "enhancement" label added. There should be no expectation of when/if this will be added but will allow for tracking what features are of public interest.

Perform the following steps on a build box as a regular user.

Install Prerequisites for RPM Creation

sudo yum groupinstall 'Development Tools'

Checkout this repository

cd /opt
git clone https://github.com/DBezemer/rpm-haproxy.git
cd ./rpm-haproxy
git checkout dev

Build using makefile and latest point release of haproxy

Basic building, no additional components

make

Build forcing minor version 2.6 of haproxy, no additional components. Any valid release version can be specified.

make MAINVERSION=2.6

With Lua support

make USE_LUA=1

With custom Lua version

make USE_LUA=1 LUA_VERSION=5.4.6

With Prometheus Module support

make USE_PROMETHEUS=1

Without sudo for yum (for building in Docker)

make NO_SUDO=1

With a custom release iteration, e.g. '2' (default '1'):

make RELEASE=2

With a custom target CPU, e.g. armv81

make CPU=armv81

Custom CFLAGS, e.g. '-O0' to disable optimization for debug:

make EXTRA_CFLAGS=-O0

Resulting RPMs will be in /opt/rpm-haproxy/rpmbuild/RPMS/x86_64/

Build using Docker

make run-docker

Resulting RPMs will be in ./RPMS/ When updating any of the files that are included in the build phase, ensure that you also bump the release number, like so: make USE_PROMETHEUS=1 RELEASE=3 run-docker

Credits

Based on the Red Hat 6.4 RPM spec for haproxy 1.4 combined with work done by

Additional logging inspired by https://www.percona.com/blog/2014/10/03/haproxy-give-me-some-logs-on-centos-6-5/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.