File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 11# vim:set ft=dockerfile:
22FROM debian:buster-slim
33
4- ENV HAPROXY_VERSION 2.0.15
5- ENV HAPROXY_URL https://www.haproxy.org/download/2.0/src/haproxy-2.0.15 .tar.gz
6- ENV HAPROXY_SHA256 6e21c6b92d4035ee006ef18e25f396d7e71552a6d3a1e075fa9fe59d89eaaeee
4+ ENV HAPROXY_VERSION 2.0.16
5+ ENV HAPROXY_URL https://www.haproxy.org/download/2.0/src/haproxy-2.0.16 .tar.gz
6+ ENV HAPROXY_SHA256 8eda217f3bf82f7ad6353bfd0c2005c4ac2da6cdca0398cf98de0016cdb97385
77
88# see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments
99RUN set -x \
Original file line number Diff line number Diff line change 11# vim:set ft=dockerfile:
22FROM alpine:3.12
33
4- ENV HAPROXY_VERSION 2.0.15
5- ENV HAPROXY_URL https://www.haproxy.org/download/2.0/src/haproxy-2.0.15 .tar.gz
6- ENV HAPROXY_SHA256 6e21c6b92d4035ee006ef18e25f396d7e71552a6d3a1e075fa9fe59d89eaaeee
4+ ENV HAPROXY_VERSION 2.0.16
5+ ENV HAPROXY_URL https://www.haproxy.org/download/2.0/src/haproxy-2.0.16 .tar.gz
6+ ENV HAPROXY_SHA256 8eda217f3bf82f7ad6353bfd0c2005c4ac2da6cdca0398cf98de0016cdb97385
77
88# see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments
99RUN set -x \
@@ -26,6 +26,10 @@ RUN set -x \
2626 && mkdir -p /usr/src/haproxy \
2727 && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
2828 && rm haproxy.tar.gz \
29+ # https://github.com/haproxy/haproxy/issues/760 ("ebtree/ebtree.c:43:2: error: unknown type name 'ssize_t'; did you mean 'size_t'?")
30+ && ! grep -qF 'unistd.h' /usr/src/haproxy/ebtree/ebtree.c \
31+ && awk '$1 == "#include" && !inc { print "#include <unistd.h>"; inc = 1 } { print }' /usr/src/haproxy/ebtree/ebtree.c > ebtree.c \
32+ && mv ebtree.c /usr/src/haproxy/ebtree/ebtree.c \
2933 \
3034 && makeOpts=' \
3135 TARGET=linux-glibc \
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ RUN set -x \
2626 && mkdir -p /usr/src/haproxy \
2727 && tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
2828 && rm haproxy.tar.gz \
29+ # https://github.com/haproxy/haproxy/issues/760 ("ebtree/ebtree.c:43:2: error: unknown type name 'ssize_t'; did you mean 'size_t'?")
30+ && ! grep -qF 'unistd.h' /usr/src/haproxy/ebtree/ebtree.c \
31+ && awk '$1 == "#include" && !inc { print "#include <unistd.h>"; inc = 1 } { print }' /usr/src/haproxy/ebtree/ebtree.c > ebtree.c \
32+ && mv ebtree.c /usr/src/haproxy/ebtree/ebtree.c \
2933 \
3034 && makeOpts=' \
3135 TARGET=linux-musl \
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ for version in "${versions[@]}"; do
6868 sedExpr+='
6969 s/linux-musl/linux-glibc/;
7070 '
71+ else
72+ sedExpr+='
73+ /ebtree/d
74+ '
7175 fi
7276 sed -r " $sedExpr " ' Dockerfile-debian.template' > " $version /Dockerfile"
7377
You can’t perform that action at this time.
0 commit comments