File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,17 @@ or_ver="1.19.3.2"
2929wget --no-check-certificate https://openresty.org/download/openresty-${or_ver} .tar.gz
3030tar -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+
3243if [ " $repo " == ngx_multi_upstream_module ]; then
3344 cp -r " $prev_workdir " .
3445else
5061 https://github.com/api7/apisix-nginx-module.git
5162fi
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
6066if [ " $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}
7379cd ../..
7480
75- cd wasm-nginx-module || exit 1
76- ./install-wasmtime.sh
77- cd ..
7881
7982version=${version:- 0.0.0}
8083cc_opt=${cc_opt:- }
Original file line number Diff line number Diff 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
5359RUN cd /tmp \
5460 && if [ -n "${RESTY_EVAL_PRE_CONFIGURE}" ]; then eval $(echo ${RESTY_EVAL_PRE_CONFIGURE}); fi \
You can’t perform that action at this time.
0 commit comments