Last active
February 19, 2019 13:20
-
-
Save mayorova/23d960e2a96df9d99342f90f72a59b0f to your computer and use it in GitHub Desktop.
Revisions
-
mayorova revised this gist
Jun 18, 2018 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,7 @@ sudo -i # Install dependencies yum install -y yum-utils gcc git # Enable OpenResty repo (see RHEL section at https://openresty.org/en/linux-packages.html) yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -19,8 +19,7 @@ yum install -y openresty-openssl-1.0.2k export OPENRESTY_RPM_VERSION="1.13.6.1" yum install -y \ openresty-${OPENRESTY_RPM_VERSION} \ openresty-resty-${OPENRESTY_RPM_VERSION} # Install LuaRocks export LUAROCKS_VERSION="2.3.0" -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,7 @@ yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarc yum upgrade -y # Install OpenResty (see RHEL section at https://openresty.org/en/linux-packages.html) yum install -y openresty-openssl-1.0.2k export OPENRESTY_RPM_VERSION="1.13.6.1" yum install -y \ openresty-${OPENRESTY_RPM_VERSION} \ -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarc yum upgrade -y # Install OpenResty (see RHEL section at https://openresty.org/en/linux-packages.html) export OPENRESTY_RPM_VERSION="1.13.6.1" yum install -y \ openresty-${OPENRESTY_RPM_VERSION} \ openresty-resty-${OPENRESTY_RPM_VERSION} \ -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -58,8 +58,8 @@ EOF exit # Download the v3.2.0 release (Red Hat 3scale API Management v2.2) and extract it curl -L -o apicast-3.2.0.tar.gz https://github.com/3scale/apicast/archive/v3.2.0.tar.gz tar xzvf apicast-3.2.0.tar.gz cd apicast-3.2.0 # Install the dependencies -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,6 @@ sudo -i # Install dependencies yum install -y yum-utils yum groupinstall -y "Development Tools" # Enable OpenResty repo (see RHEL section at https://openresty.org/en/linux-packages.html) yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ yum install -y \ # Install LuaRocks export LUAROCKS_VERSION="2.3.0" yum install -y luarocks-${LUAROCKS_VERSION} # Configure Lua environment mkdir -p /usr/share/lua/5.1/luarocks/ -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 9 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,17 +6,22 @@ yum install -y yum-utils yum groupinstall -y "Development Tools" yum install -y git # Enable OpenResty repo (see RHEL section at https://openresty.org/en/linux-packages.html) yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo # Enable EPEL packages (needed for LuaRocks) yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # Upgrade yum yum upgrade -y # Install OpenResty (see RHEL section at https://openresty.org/en/linux-packages.html) export OPENRESTY_RPM_VERSION="1.13.6.2" yum install -y \ openresty-${OPENRESTY_RPM_VERSION} \ openresty-resty-${OPENRESTY_RPM_VERSION} \ openresty-openssl # Install LuaRocks export LUAROCKS_VERSION="2.3.0" yum install -y luarocks -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,9 @@ sudo -i # Install dependencies yum install -y yum-utils yum groupinstall -y "Development Tools" yum install -y git # Enable OpenResty repo and install OpenResty (see RHEL section at https://openresty.org/en/linux-packages.html) yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo @@ -15,11 +15,11 @@ yum install -y \ openresty-openssl # Enable EPEL packages yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # Install LuaRocks export LUAROCKS_VERSION="2.3.0" yum install -y luarocks # Configure Lua environment mkdir -p /usr/share/lua/5.1/luarocks/ -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,10 @@ yum install git # Enable OpenResty repo and install OpenResty (see RHEL section at https://openresty.org/en/linux-packages.html) yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo export OPENRESTY_RPM_VERSION="1.13.6.2" yum install -y \ openresty-${OPENRESTY_RPM_VERSION} \ openresty-resty-${OPENRESTY_RPM_VERSION} \ openresty-openssl # Enable EPEL packages yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,9 +11,11 @@ yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo export OPENRESTY_RPM_VERSION="1.13.6.2" yum install openresty openresty-resty # Enable EPEL packages yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # Install LuaRocks export LUAROCKS_VERSION="2.3.0" yum install luarocks # Configure Lua environment -
mayorova revised this gist
Jun 12, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,9 +8,11 @@ yum install git # Enable OpenResty repo and install OpenResty (see RHEL section at https://openresty.org/en/linux-packages.html) yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo export OPENRESTY_RPM_VERSION="1.13.6.2" yum install openresty openresty-resty # Install LuaRocks export LUAROCKS_VERSION="2.3.0" yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install luarocks -
mayorova revised this gist
Jun 11, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -56,8 +56,8 @@ make dependencies # Start APIcast THREESCALE_PORTAL_ENDPOINT=https://{ACCESS_TOKEN}@{DOMAIN}-admin.3scale.net \ THREESCALE_DEPLOYMENT_ENV=staging \ APICAST_CONFIGURATION_LOADER=lazy \ APICAST_CONFIGURATION_CACHE=0 \ bin/apicast -vvv -
mayorova revised this gist
Jun 11, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -60,3 +60,4 @@ THREESCALE_PORTAL_ENDPOINT=https://{ACCESS_TOKEN}@{DOMAIN}-admin.3scale.net \ > APICAST_CONFIGURATION_LOADER=lazy \ > APICAST_CONFIGURATION_CACHE=0 \ > bin/apicast -vvv -
mayorova revised this gist
Jun 11, 2018 . No changes.There are no files selected for viewing
-
mayorova revised this gist
Jun 11, 2018 . 1 changed file with 12 additions and 39 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,21 @@ # Switch to root sudo -i # Install dependencies yum install yum-utils yum groupinstall "Development Tools" yum install git # Enable OpenResty repo and install OpenResty (see RHEL section at https://openresty.org/en/linux-packages.html) yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo yum install openresty openresty-resty # Install LuaRocks yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install luarocks # Configure Lua environment mkdir -p /usr/share/lua/5.1/luarocks/ cat << EOF > /usr/share/lua/5.1/luarocks/site_config.lua local site_config = { } @@ -44,46 +43,20 @@ site_config.LUAROCKS_RUNTIME_EXTERNAL_DEPS_SUBDIRS={ bin="bin", lib={ "lib", [[l return site_config EOF # Return to non-root user exit # Download the v3.2.0 release (Red Hat 3scale API Management v2.2) and extract it wget https://github.com/3scale/apicast/archive/v3.2.0.tar.gz tar xzvf v3.2.0.tar.gz cd apicast-3.2.0 # Install the dependencies make dependencies # Start APIcast THREESCALE_PORTAL_ENDPOINT=https://{ACCESS_TOKEN}@{DOMAIN}-admin.3scale.net \ > THREESCALE_DEPLOYMENT_ENV=staging \ > APICAST_CONFIGURATION_LOADER=lazy \ > APICAST_CONFIGURATION_CACHE=0 \ > bin/apicast -vvv -
mayorova created this gist
Jun 11, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,89 @@ sudo -i yum install yum-utils yum groupinstall "Development Tools" yum install git yum-config-manager --add-repo https://openresty.org/package/rhel/openresty.repo yum install openresty openresty-resty yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install luarocks mkdir -p /usr/share/lua/5.1/luarocks/ cat << EOF > /usr/share/lua/5.1/luarocks/site_config.lua local site_config = { } local openresty = [[/usr/local/openresty]] local luajit = openresty .. [[/luajit]] site_config.LUAROCKS_SYSCONFIG=openresty .. [[/config-5.1.lua]] site_config.LUA_INTERPRETER=[[resty]] site_config.LUA_DIR_SET=false site_config.LUAROCKS_PREFIX= [[/usr]] site_config.LUA_INCDIR= luajit .. [[/include/luajit-2.1]] site_config.LUA_LIBDIR= luajit .. [[/lib/5.1]] site_config.LUA_BINDIR= openresty .. [[/bin]] site_config.LUAROCKS_SYSCONFDIR=[[/etc/luarocks]] site_config.LUAROCKS_ROCKS_TREE=[[/usr/local/openresty/luajit]] site_config.LUAROCKS_ROCKS_SUBDIR=[[/luarocks/rocks]] site_config.LUAROCKS_UNAME_S=[[Linux]] site_config.LUAROCKS_UNAME_M=[[x86_64]] site_config.LUAROCKS_DOWNLOADER=[[curl]] site_config.LUAROCKS_MD5CHECKER=[[md5sum]] site_config.LUAROCKS_EXTERNAL_DEPS_SUBDIRS={ bin="bin", lib={ "lib", [[lib64]] }, include="include" } site_config.LUAROCKS_RUNTIME_EXTERNAL_DEPS_SUBDIRS={ bin="bin", lib={ "lib", [[lib64]] }, include="include" } return site_config EOF exit (quit to normal user) wget https://github.com/3scale/apicast/archive/v3.2.0.tar.gz tar xzvf v3.2.0.tar.gz cd apicast-3.2.0 make dependencies ~~~ ERROR: lua_modules/share/lua/5.1/rover/install.lua:44: Build error: Failed compiling object src/lfs.o -f not installed Development Tools ~~~ THREESCALE_PORTAL_ENDPOINT=https://01cfb707316d21f6d70bf7becd5a0dc505b0b2a56d3e3fe2931e2efa6cfe2542@daria-admin.3scale.net \ > THREESCALE_DEPLOYMENT_ENV=staging \ > APICAST_CONFIGURATION_LOADER=lazy \ > APICAST_CONFIGURATION_CACHE=0 \ > APICAST_SERVICES_LIST=2555417757540 \ > bin/apicast -vv ~~~ ERROR: ...user/apicast-3.2.0/lua_modules/share/lua/5.1/pl/path.lua:28: pl.path requires LuaFileSystem stack traceback: ...user/apicast-3.2.0/lua_modules/share/lua/5.1/pl/path.lua:28: in main chunk [C]: in function 'require' ...ser/apicast-3.2.0/gateway/src/apicast/cli/filesystem.lua:6: in main chunk [C]: in function 'require' ...-user/apicast-3.2.0/gateway/src/apicast/cli/template.lua:11: in main chunk [C]: in function 'require' .../apicast-3.2.0/gateway/src/apicast/cli/command/start.lua:15: in main chunk [C]: in function 'require' /home/ec2-user/apicast-3.2.0/gateway/src/apicast/cli.lua:18: in function 'load_commands' /home/ec2-user/apicast-3.2.0/gateway/src/apicast/cli.lua:23: in main chunk [C]: in function 'require' /tmp/JjRZz6pdQp:60: in function 'file_gen' init_worker_by_lua:48: in function <init_worker_by_lua:46> [C]: in function 'xpcall' init_worker_by_lua:55: in function <init_worker_by_lua:53> ~~~