-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1477 from tkan145/perf-tools
[THREESCALE-10981] - Update profiling tools
- Loading branch information
Showing
6 changed files
with
130 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
set -x -e | ||
|
||
LUAROCKS_VER="3.8.0" | ||
OPENRESTY_PREFIX="/usr/local/openresty" | ||
WITH_LUA_OPT="--with-lua=${OPENRESTY_PREFIX}/luajit" | ||
APP_ROOT=/opt/app-root | ||
|
||
export PATH=$PATH:/usr/local/bin | ||
|
||
wget -q https://github.com/luarocks/luarocks/archive/v"$LUAROCKS_VER".tar.gz | ||
tar -xf v"$LUAROCKS_VER".tar.gz | ||
cd luarocks-"$LUAROCKS_VER" || exit | ||
./configure $WITH_LUA_OPT | ||
|
||
make && make install | ||
cd .. | ||
rm -rf luarocks-"$LUAROCKS_VER" | ||
rm -f v"$LUAROCKS_VER".tar.gz | ||
|
||
cp ${APP_ROOT}/site_config.lua /usr/local/share/lua/5.1/luarocks/site_config.lua | ||
cp ${APP_ROOT}/config-*.lua /usr/local/openresty/config-5.1.lua | ||
|
||
luarocks install luaossl 20200709 --tree ${APP_ROOT}/lua_modules CFLAGS="-O2 -fPIC -DHAVE_EVP_KDF_CTX=1" | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/pintsized/lua-resty-http-0.17.1-0.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/kikito/router-2.1-0.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/kikito/inspect-3.1.1-0.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/cdbattags/lua-resty-jwt-0.2.0-0.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/3scale/lua-resty-url-0.3.5-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/3scale/lua-resty-env-0.4.0-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/3scale/liquid-0.2.0-2.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/tieske/date-2.2-2.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/tieske/penlight-1.13.1-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/mpeterv/argparse-0.6.0-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/3scale/lua-resty-execvp-0.1.1-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/hisham/luafilesystem-1.8.0-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/3scale/lua-resty-jit-uuid-0.0.7-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/knyar/nginx-lua-prometheus-0.20181120-2.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/hamish/lua-resty-iputils-0.3.0-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/golgote/net-url-0.9-1.src.rock | ||
luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/membphis/lua-resty-ipmatcher-0.6.1-0.src.rock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
set -x -e | ||
|
||
OPENRESTY_YUM_REPO="https://openresty.org/package/centos/openresty.repo" | ||
THREESCALE_YUM_REPO="http://packages.dev.3sca.net/dev_packages_3sca_net.repo" | ||
OPENRESTY_RPM_VERSION="1.21.4-1.el8" | ||
JAEGERTRACING_CPP_CLIENT_RPM_VERSION="0.3.1-13.el8" | ||
|
||
APP_ROOT=/opt/app-root | ||
HOME=/opt/app-root/src | ||
PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
|
||
## add openresty and 3scale rpm repo | ||
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo | ||
yum-config-manager --add-repo http://packages.dev.3sca.net/dev_packages_3sca_net.repo | ||
|
||
yum -y install \ | ||
openresty-${OPENRESTY_RPM_VERSION} \ | ||
openresty-resty-${OPENRESTY_RPM_VERSION} \ | ||
openresty-debuginfo-${OPENRESTY_RPM_VERSION} \ | ||
openresty-debugsource-${OPENRESTY_RPM_VERSION} \ | ||
openresty-opentelemetry-${OPENRESTY_RPM_VERSION} \ | ||
openresty-opentracing-${OPENRESTY_RPM_VERSION} \ | ||
opentracing-cpp-devel-1.3.0 \ | ||
libopentracing-cpp1-1.3.0 \ | ||
jaegertracing-cpp-client-${JAEGERTRACING_CPP_CLIENT_RPM_VERSION}\ | ||
|
||
export PATH="./lua_modules/bin:/usr/local/openresty/luajit/bin/:${PATH}" | ||
export LUA_PATH="./lua_modules/share/lua/5.1/?.lua;./lua_modules/share/lua/5.1/?/init.lua;/usr/lib64/lua/5.1/?.lua;/usr/share/lua/5.1/?.lua;/opt/app-root/lua_modules/share/lua/5.1/?.lua;/opt/app-root/lua_modules/share/lua/5.1/?/?.lua" | ||
export LUA_CPATH="./lua_modules/lib/lua/5.1/?.so;/opt/app-root/lua_modules/lib64/lua/5.1/?.so;/opt/app-root/lua_modules/lib64/lua/5.1/?/?.so;;" | ||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/app-root/lib" | ||
|
||
ln -sf /dev/stdout /usr/local/openresty/nginx/logs/access.log | ||
ln -sf /dev/stderr /usr/local/openresty/nginx/logs/error.log | ||
mkdir -p /usr/local/openresty/nginx/client_body_temp/ | ||
chmod 777 /usr/local/openresty/nginx/client_body_temp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters