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 1
1
# vim:set ft=dockerfile:
2
2
FROM debian:buster-slim
3
3
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
7
7
8
8
# see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments
9
9
RUN set -x \
Original file line number Diff line number Diff line change 1
1
# vim:set ft=dockerfile:
2
2
FROM alpine:3.12
3
3
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
7
7
8
8
# see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments
9
9
RUN set -x \
@@ -26,6 +26,10 @@ RUN set -x \
26
26
&& mkdir -p /usr/src/haproxy \
27
27
&& tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
28
28
&& 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 \
29
33
\
30
34
&& makeOpts=' \
31
35
TARGET=linux-glibc \
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ RUN set -x \
26
26
&& mkdir -p /usr/src/haproxy \
27
27
&& tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
28
28
&& 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 \
29
33
\
30
34
&& makeOpts=' \
31
35
TARGET=linux-musl \
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ for version in "${versions[@]}"; do
68
68
sedExpr+='
69
69
s/linux-musl/linux-glibc/;
70
70
'
71
+ else
72
+ sedExpr+='
73
+ /ebtree/d
74
+ '
71
75
fi
72
76
sed -r " $sedExpr " ' Dockerfile-debian.template' > " $version /Dockerfile"
73
77
You can’t perform that action at this time.
0 commit comments