mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
refactor: get rid of luarocks completely, better exceptions handling
This commit is contained in:
@ -97,25 +97,7 @@ ADD haproxy/docker-entrypoint.sh /usr/local/bin/
|
||||
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
|
||||
|
||||
# This is terrible mess but we need it for simple testing purposes of our POC
|
||||
RUN apt-get update && apt-get install libssl-dev make nano wget gcc libreadline-dev unzip git socat cmake g++ -y
|
||||
RUN wget http://www.lua.org/ftp/lua-5.3.5.tar.gz &&\
|
||||
tar -zxf lua-5.3.5.tar.gz &&\
|
||||
cd lua-5.3.5 &&\
|
||||
make linux test &&\
|
||||
make install
|
||||
|
||||
RUN wget "https://luarocks.org/releases/luarocks-3.3.1.tar.gz" &&\
|
||||
tar zxpf luarocks-3.3.1.tar.gz &&\
|
||||
cd luarocks-3.3.1 &&\
|
||||
./configure --with-lua-include=/usr/local/include --lua-version=5.3 --lua-suffix=5.3 &&\
|
||||
make &&\
|
||||
make install
|
||||
|
||||
RUN /usr/local/bin/luarocks install luasocket &&\
|
||||
/usr/local/bin/luarocks install luasec &&\
|
||||
/usr/local/bin/luarocks install net-url &&\
|
||||
/usr/local/bin/luarocks install md5 &&\
|
||||
/usr/local/bin/luarocks install rapidjson
|
||||
RUN apt-get update && apt-get install socat dnsutils -y
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||
|
||||
|
Reference in New Issue
Block a user