Skip to content

Commit c257660

Browse files
committed
use alpine-pkg-glibc
1 parent 0a10d68 commit c257660

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

build-apisix-base.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ or_ver="1.19.3.2"
2929
wget --no-check-certificate https://openresty.org/download/openresty-${or_ver}.tar.gz
3030
tar -zxvpf openresty-${or_ver}.tar.gz
3131

32+
if [ "$repo" == wasm-nginx-module ]; then
33+
cp -r "$prev_workdir" .
34+
else
35+
git clone --depth=1 $wasm_nginx_module_ver \
36+
https://github.com/api7/wasm-nginx-module.git
37+
fi
38+
39+
cd wasm-nginx-module || exit 1
40+
./install-wasmtime.sh
41+
cd ..
42+
3243
if [ "$repo" == ngx_multi_upstream_module ]; then
3344
cp -r "$prev_workdir" .
3445
else
@@ -50,12 +61,7 @@ else
5061
https://github.com/api7/apisix-nginx-module.git
5162
fi
5263

53-
if [ "$repo" == wasm-nginx-module ]; then
54-
cp -r "$prev_workdir" .
55-
else
56-
git clone --depth=1 $wasm_nginx_module_ver \
57-
https://github.com/api7/wasm-nginx-module.git
58-
fi
64+
5965

6066
if [ "$repo" == lua-var-nginx-module ]; then
6167
cp -r "$prev_workdir" .
@@ -72,9 +78,6 @@ cd apisix-nginx-module/patch || exit 1
7278
./patch.sh ../../openresty-${or_ver}
7379
cd ../..
7480

75-
cd wasm-nginx-module || exit 1
76-
./install-wasmtime.sh
77-
cd ..
7881

7982
version=${version:-0.0.0}
8083
cc_opt=${cc_opt:-}

dockerfiles/Dockerfile.apisix-base.apk

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,22 @@ RUN apk add --no-cache --virtual .build-deps \
3939
&& apk add --no-cache \
4040
gd \
4141
geoip \
42-
libgcc \
4342
libxslt \
4443
zlib \
4544
bash \
4645
git \
4746
sudo \
4847
curl \
4948
build-base \
50-
g++ \
51-
libc6-compat
49+
libstdc++
50+
51+
RUN cd /tmp \
52+
&& GLIBC_VER="2.29-r0" && \
53+
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
54+
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-${GLIBC_VER}.apk && \
55+
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk && \
56+
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk && \
57+
apk add glibc-bin-${GLIBC_VER}.apk glibc-i18n-${GLIBC_VER}.apk glibc-${GLIBC_VER}.apk
5258

5359
RUN cd /tmp \
5460
&& if [ -n "${RESTY_EVAL_PRE_CONFIGURE}" ]; then eval $(echo ${RESTY_EVAL_PRE_CONFIGURE}); fi \

0 commit comments

Comments
 (0)