build HAProxy inside a container

This commit is contained in:
Michael Rennecke 2019-05-07 19:42:42 +02:00
parent 0a96f87e83
commit be03cabfa2
2 changed files with 25 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM debian:9
RUN apt update
RUN apt install -y \
ca-certificates \
libsystemd-dev \
liblua5.3-dev \
libpcre3-dev \
zlib1g-dev \
libc6-dev \
make \
wget \
gcc
RUN mkdir /workspace
WORKDIR /workspace

9
build.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
docker build -t debian-build-env .
docker run -it \
--rm \
--volume="$(pwd):/workspace" \
--user="$(id -u):$(id -g)" \
debian-build-env \
./build-haproxy.sh