Skip to content

Commit 6cd53ed

Browse files
authored
Merge pull request #111 from TimWolla/target-musl
Switch to TARGET=linux-musl for alpine
2 parents eaec0e4 + bfa23c1 commit 6cd53ed

File tree

9 files changed

+8
-18
lines changed

9 files changed

+8
-18
lines changed

1.6/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ RUN set -x \
3535
USE_OPENSSL=1 \
3636
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3737
USE_ZLIB=1 \
38-
# USE_BACKTRACE is enabled by default on the linux2628 target, but does not work with musl
39-
USE_BACKTRACE= \
4038
\
4139
EXTRA_OBJS=" \
4240
" \

1.7/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ RUN set -x \
3636
USE_OPENSSL=1 \
3737
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3838
USE_ZLIB=1 \
39-
# USE_BACKTRACE is enabled by default on the linux2628 target, but does not work with musl
40-
USE_BACKTRACE= \
4139
\
4240
EXTRA_OBJS=" \
4341
" \

1.8/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ RUN set -x \
3535
USE_OPENSSL=1 \
3636
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3737
USE_ZLIB=1 \
38-
# USE_BACKTRACE is enabled by default on the linux2628 target, but does not work with musl
39-
USE_BACKTRACE= \
4038
\
4139
EXTRA_OBJS=" \
4240
" \

1.9/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ RUN set -x \
3535
USE_OPENSSL=1 \
3636
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3737
USE_ZLIB=1 \
38-
# USE_BACKTRACE is enabled by default on the linux2628 target, but does not work with musl
39-
USE_BACKTRACE= \
4038
\
4139
EXTRA_OBJS=" \
4240
" \

2.0/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ RUN set -x \
3535
USE_OPENSSL=1 \
3636
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3737
USE_ZLIB=1 \
38-
# USE_BACKTRACE is enabled by default on the linux-glibc target, but does not work with musl
39-
USE_BACKTRACE= \
4038
\
4139
EXTRA_OBJS=" \
4240
# see https://github.com/docker-library/haproxy/issues/94#issuecomment-505673353 for more details about prometheus support

2.1/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ RUN set -x \
3535
USE_OPENSSL=1 \
3636
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3737
USE_ZLIB=1 \
38-
# USE_BACKTRACE is enabled by default on the linux-glibc target, but does not work with musl
39-
USE_BACKTRACE= \
4038
\
4139
EXTRA_OBJS=" \
4240
# see https://github.com/docker-library/haproxy/issues/94#issuecomment-505673353 for more details about prometheus support

2.2-rc/alpine/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ RUN set -x \
2929
&& rm haproxy.tar.gz \
3030
\
3131
&& makeOpts=' \
32-
TARGET=linux-glibc \
32+
TARGET=linux-musl \
3333
USE_GETADDRINFO=1 \
3434
USE_LUA=1 LUA_INC=/usr/include/lua5.3 LUA_LIB=/usr/lib/lua5.3 \
3535
USE_OPENSSL=1 \
3636
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3737
USE_ZLIB=1 \
38-
# USE_BACKTRACE is enabled by default on the linux-glibc target, but does not work with musl
39-
USE_BACKTRACE= \
4038
\
4139
EXTRA_OBJS=" \
4240
# see https://github.com/docker-library/haproxy/issues/94#issuecomment-505673353 for more details about prometheus support

Dockerfile-alpine.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ RUN set -x \
2929
&& rm haproxy.tar.gz \
3030
\
3131
&& makeOpts=' \
32-
TARGET=linux-glibc \
32+
TARGET=linux-musl \
3333
USE_GETADDRINFO=1 \
3434
USE_LUA=1 LUA_INC=/usr/include/lua5.3 LUA_LIB=/usr/lib/lua5.3 \
3535
USE_OPENSSL=1 \
3636
USE_PCRE2=1 USE_PCRE2_JIT=1 \
3737
USE_ZLIB=1 \
38-
# USE_BACKTRACE is enabled by default on the linux-glibc target, but does not work with musl
39-
USE_BACKTRACE= \
4038
\
4139
EXTRA_OBJS=" \
4240
# see https://github.com/docker-library/haproxy/issues/94#issuecomment-505673353 for more details about prometheus support

update.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,15 @@ for version in "${versions[@]}"; do
6868
if [[ "$version" = 1.* ]]; then
6969
sedExpr+='
7070
s/linux-glibc/linux2628/;
71+
s/linux-musl/linux2628/;
7172
/prometheus/d;
7273
'
7374
fi
75+
if [[ "$version" =~ 2.[01] ]]; then
76+
sedExpr+='
77+
s/linux-musl/linux-glibc/;
78+
'
79+
fi
7480
sed -r "$sedExpr" 'Dockerfile-debian.template' > "$version/Dockerfile"
7581

7682
for variant in alpine; do

0 commit comments

Comments
 (0)