Skip to content

codingtony/docker-build-haproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-build-haproxy

CentOS 6 based image that contains a build of HAProxy with LibreSSL

This is a basic image containing everything to build HAProxy 1.7.x from source.

It uses a Gist that I wrote

I think that using Docker for creating an image to build software is very interesting since it is small, fast, reproductible and you can build without messing with your own system (installing build dependencies).

This build is "semi-static", and it compiles against recent versions of pcre, libressl, ncurses, readline and lua

        linux-vdso.so.1 =>  (0x00007fff209fe000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007ff5be82e000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007ff5be413000)
        librt.so.1 => /lib64/librt.so.1 (0x00007ff5be20b000)
        libc.so.6 => /lib64/libc.so.6 (0x00007ff5bde77000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007ff5bdbfd000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff5bea6c000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff5bd9e0000)

Instructions to build the docker file

git clone https://github.com/codingtony/docker-build-haproxy.git
cd docker-build-haproxy
docker build -t codingtony/build-haproxy .

You can also pull it from the repo

docker pull codingtony/build-haproxy

Build haproxy

mkdir dist
# this will create files as root.
docker run --rm -v $PWD/dist:/tmp/haproxy codingtony/build-haproxy
# if you don't want this you can try this :
docker run --rm -u $(id -u) -v /etc/passwd:/etc/passwd:ro -v $PWD/dist:/tmp/haproxy codingtony/build-haproxy

This will start the build, the compiled haproxy will be in $PWD/dist/target/haproxy/usr/local/sbin/haproxy

Enjoy!

About

CentOS based image to build HAProxy with LibreSSL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages