File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG OPENRESTY_RPM_VERSION="1.21.4-1.el8"
44ARG LUAROCKS_VERSION="3.11.1"
55ARG JAEGERTRACING_CPP_CLIENT_RPM_VERSION="0.3.1-13.el8"
66ARG LUAROVER_VERSION="0.2.1"
7+ ARG LUAROCKS_MIRROR="https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/c0a197bd3ae9bb59560d61c99dc7e9343a719116"
78
89WORKDIR /tmp
910
@@ -57,16 +58,16 @@ RUN cd /tmp \
5758 --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 \
5859 && make build \
5960 && make install \
60- && luarocks install luaossl 20200709 --tree ${APP_ROOT}/lua_modules CFLAGS="-O2 -fPIC -DHAVE_EVP_KDF_CTX=1" \
61- && luarocks install http --tree ${APP_ROOT}/lua_modules \
61+ && luarocks install luaossl 20200709 --only-server ${LUAROCKS_MIRROR} -- tree ${APP_ROOT}/lua_modules CFLAGS="-O2 -fPIC -DHAVE_EVP_KDF_CTX=1" \
62+ && luarocks install http --only-server ${LUAROCKS_MIRROR} -- tree ${APP_ROOT}/lua_modules \
6263 && cd /tmp \
6364 && rm -rf luarocks-${LUAROCKS_VERSION} luarocks-${LUAROCKS_VERSION}.tar.gz \
6465 && curl -fSL https://github.com/3scale/lua-rover/archive/refs/tags/v${LUAROVER_VERSION}.tar.gz -o lua-rover-v${LUAROVER_VERSION}.tar.gz \
6566 && tar xzf lua-rover-v${LUAROVER_VERSION}.tar.gz \
6667 && cd lua-rover-${LUAROVER_VERSION} \
67- && luarocks make \
68+ && luarocks make --only-server ${LUAROCKS_MIRROR} \
6869 && yum -y remove luarocks \
69- && rm -rf /var/cache/yum && yum clean all -y
70+ && rm -rf /var/cache/yum && yum clean all -y
7071
7172# Directory with the sources is set as the working directory so all STI scripts
7273# can execute relative to this path.
You can’t perform that action at this time.
0 commit comments