Skip to content

Commit 3aa27e6

Browse files
committed
Temporary fix for broken luarocks server
1 parent ed5af58 commit 3aa27e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile.devel

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ARG OPENRESTY_RPM_VERSION="1.21.4-1.el8"
44
ARG LUAROCKS_VERSION="3.11.1"
55
ARG JAEGERTRACING_CPP_CLIENT_RPM_VERSION="0.3.1-13.el8"
66
ARG LUAROVER_VERSION="0.2.1"
7+
ARG LUAROCKS_MIRROR="https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/c0a197bd3ae9bb59560d61c99dc7e9343a719116"
78

89
WORKDIR /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.

0 commit comments

Comments
 (0)