# Lua lint for kresd CI
RUN apt-get install luarocks -y -qqq
-RUN luarocks install luacheck
+RUN luarocks --lua-version 5.1 install luacheck
# respdiff for kresd CI
RUN apt-get install lmdb-utils -y -qqq
# code coverage
RUN apt-get install -y -qqq lcov
-RUN luarocks install luacov
+RUN luarocks --lua-version 5.1 install luacov
# LuaJIT binary for stand-alone scripting
RUN apt-get install -y -qqq luajit
-luarocks install etcd --from=https://mah0x211.github.io/rocks/
+luarocks --lua-version 5.1 install etcd --from=https://mah0x211.github.io/rocks/
-luarocks install etcd --from=https://mah0x211.github.io/rocks/
+luarocks --lua-version 5.1 install etcd --from=https://mah0x211.github.io/rocks/
-luarocks install etcd --from=https://mah0x211.github.io/rocks/
+luarocks --lua-version 5.1 install etcd --from=https://mah0x211.github.io/rocks/
* `lua-etcd <https://github.com/mah0x211/lua-etcd>`_ library available in LuaRocks
- ``$ luarocks install etcd --from=https://mah0x211.github.io/rocks/``
+ ``$ luarocks --lua-version 5.1 install etcd --from=https://mah0x211.github.io/rocks/``
-luarocks install basexx --from=https://mah0x211.github.io/rocks/
+luarocks --lua-version 5.1 install basexx --from=https://mah0x211.github.io/rocks/
-luarocks install cqueues --from=https://mah0x211.github.io/rocks/
+luarocks --lua-version 5.1 install cqueues --from=https://mah0x211.github.io/rocks/
-luarocks install http --from=https://mah0x211.github.io/rocks/
+luarocks --lua-version 5.1 install http --from=https://mah0x211.github.io/rocks/
$ brew install openssl
$ brew link openssl --force # Override system OpenSSL
- Any other system can install from LuaRocks directly:
+ Some other systems can install from LuaRocks directly:
.. code-block:: bash
- $ luarocks install http
+ $ luarocks --lua-version 5.1 install http
* (*optional*) `mmdblua <https://github.com/daurnimator/mmdblua>`_ available in LuaRocks
.. code-block:: bash
- $ luarocks install --server=https://luarocks.org/dev mmdblua
+ $ luarocks --lua-version 5.1 install --server=https://luarocks.org/dev mmdblua
$ curl -O https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
$ gzip -d GeoLite2-City.mmdb.gz