Add terraform scripts to build nginx image (#4484)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-09-09 01:18:30 -03:00 committed by GitHub
parent ce3e3d51c3
commit 9eedc1be56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 448 additions and 3 deletions

View file

@ -475,7 +475,12 @@ cd /usr/local/openresty
export LUA_LIB_DIR=/usr/local/openresty/lualib
export LUA_INCLUDE_DIR=/tmp/build/openresty-$OPENRESTY_VERSION/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1
luarocks install lrexlib-pcre 2.7.2-1 PCRE_LIBDIR=${PCRE_DIR}
ln -s $LUA_INCLUDE_DIR /usr/include/lua5.1
if [[ ${ARCH} != "armv7l" ]]; then
luarocks install lrexlib-pcre 2.7.2-1 PCRE_LIBDIR=${PCRE_DIR}
fi
luarocks install lua-resty-iputils 0.3.0-1
luarocks install lua-resty-cookie 0.1.0-1
@ -484,8 +489,6 @@ cd "$BUILD_PATH/lua-resty-balancer-$LUA_RESTY_BALANCER_VERSION"
make
make install
ln -s $LUA_INCLUDE_DIR /usr/include/lua5.1
if [[ ${ARCH} != "armv7l" ]]; then
/install_lua_resty_waf.sh
fi