Files
Jamie Curnow dd72bc45b1 Major updates
- OpenResty v1.29.2.4
  Using the github tag since this fixes a fresh CVE-2026-42945
- Updated base debian image to trixie
- Lua v5.5.0
- Luarocks v3.13.0
- Removed unused install script for Crowsec
2026-05-18 10:55:26 +10:00

36 lines
911 B
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash -e
BLUE='\E[1;34m'
CYAN='\E[1;36m'
YELLOW='\E[1;33m'
GREEN='\E[1;32m'
RESET='\E[0m'
echo -e "${BLUE} ${CYAN}Building Lua ${YELLOW}${LUA_VERSION}...${RESET}"
cd /tmp
wget "http://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz"
tar -xzf "lua-${LUA_VERSION}.tar.gz"
mv "/tmp/lua-${LUA_VERSION}" /tmp/lua
cd /tmp/lua
make linux test
# We have to install Lua for the Luarocks build to succeed,
# it will be installed again when building the final image
make install
echo -e "${BLUE} ${GREEN}Lua build completed${RESET}"
echo -e "${BLUE} ${CYAN}Building Luarocks ${YELLOW}${LUAROCKS_VERSION}...${RESET}"
cd /tmp
wget "http://luarocks.github.io/luarocks/releases/luarocks-${LUAROCKS_VERSION}.tar.gz"
tar -xzf luarocks-${LUAROCKS_VERSION}.tar.gz
mv /tmp/luarocks-${LUAROCKS_VERSION} /tmp/luarocks
cd /tmp/luarocks
./configure
make
echo -e "${BLUE} ${GREEN}Luarocks build completed${RESET}"