Skip to content

Commit

Permalink
fix wasmtime
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan committed Jan 31, 2024
1 parent 8012b10 commit 0771417
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build-apisix-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ OPENRESTY_VERSION="1.21.4.2"
ngx_multi_upstream_module_ver="1.1.1"
mod_dubbo_ver="1.0.2"
apisix_nginx_module_ver="1.15.0"
wasm_nginx_module_ver="0.6.5"
wasm_nginx_module_ver="0.6.6"
lua_var_nginx_module_ver="v0.5.3"
grpc_client_nginx_module_ver="v0.4.4"
lua_resty_events_ver="0.2.0"
Expand Down Expand Up @@ -116,7 +116,7 @@ if [ "$repo" == wasm-nginx-module ]; then
cp -r "$prev_workdir" ./wasm-nginx-module-${wasm_nginx_module_ver}
else
git clone --depth=1 -b $wasm_nginx_module_ver \
https://github.com/api7/wasm-nginx-module.git \
https://github.com/AlinsRan/wasm-nginx-module.git \
wasm-nginx-module-${wasm_nginx_module_ver}
fi

Expand Down
8 changes: 7 additions & 1 deletion dockerfiles/Dockerfile.apisix-runtime.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ ENV runtime_version=${RUNTIME_VERSION}

COPY ${CODE_PATH} ./

RUN mv ./utils/build-common.sh ./utils/determine-dist.sh ./ \
RUN yum install -y curl \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& source "$HOME/.cargo/env" \
&& rustup install 1.69 \
&& rustup default 1.69 \
# build apisix runtime
&& mv ./utils/build-common.sh ./utils/determine-dist.sh ./ \
&& ./build-common.sh build_apisix_runtime_rpm \
# determine dist and write it into /tmp/dist file
&& ./determine-dist.sh
4 changes: 0 additions & 4 deletions utils/build-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ build_apisix_runtime_rpm() {
set +eu
source scl_source enable devtoolset-9
set -eu
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup install 1.69
rustup default 1.69
elif [[ $(rpm --eval '%{centos_ver}') == "8" ]]; then
dnf install -y gcc-toolset-9-toolchain patch wget git make sudo cpanminus
dnf install -y yum-utils
Expand Down

0 comments on commit 0771417

Please sign in to comment.