From 1b0fac8132c379acf3bf82d7b951ce9c0b25ba23 Mon Sep 17 00:00:00 2001 From: YonggangWang Date: Tue, 18 Apr 2017 14:28:09 +0800 Subject: Use openresty binary from OPEN-O Nexus to build Issue-id: OCS-173 Modify Maven Scripts to Download openresty Binary from OPEN-O Nexus for MSB Building Change-Id: I1977253373f1fd063b2ae3827110bb77676dfd2f Signed-off-by: YonggangWang --- msb-core/openresty-ext/pom.xml | 167 +++++++++++++++------ .../resources/openresty/nginx/logs/placeholder.txt | 0 .../resources/openresty/nginx/temp/placeholder.txt | 0 .../src/assembly/resources/openresty/run.sh | 8 +- 4 files changed, 124 insertions(+), 51 deletions(-) create mode 100644 msb-core/openresty-ext/src/assembly/resources/openresty/nginx/logs/placeholder.txt create mode 100644 msb-core/openresty-ext/src/assembly/resources/openresty/nginx/temp/placeholder.txt (limited to 'msb-core/openresty-ext') diff --git a/msb-core/openresty-ext/pom.xml b/msb-core/openresty-ext/pom.xml index 904b95f..57a6af5 100644 --- a/msb-core/openresty-ext/pom.xml +++ b/msb-core/openresty-ext/pom.xml @@ -38,58 +38,125 @@ openresty-ext + + + org.openresty.centos.6 + openresty + ${openresty.version} + tar.gz + + + - - maven-resources-plugin - - true - - - - copy-resources - process-resources - - copy-resources - - - ${outputdir} - - - src/assembly/resources/ - false - - **/* - - - - true - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - distribution - package - - run - - - - - - - - - - - - + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-dependency-file-linux + + unpack + + + generate-resources + + + + org.openresty.centos.6 + openresty + tar.gz + ${linux64outputdir} + + + **/pod/**,**/*.pdb + false + true + true + + + + + + + com.coderplus.maven.plugins + copy-rename-maven-plugin + 1.0.1 + + + rename-nginx-dir + process-resources + + rename + + + ${linux64outputdir}/openresty-${openresty.version} + ${linux64outputdir}/openresty + + + + + + + maven-resources-plugin + + + copy-msb-resources-linux64 + process-resources + + copy-resources + + + ${linux64outputdir} + true + + + src/assembly/resources/ + false + + **/* + + + **/*.bat + **/openrestyService* + + + + true + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + distribution-linux + package + + run + + + + + + + + + + + + + + + + + + + diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/logs/placeholder.txt b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/logs/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/temp/placeholder.txt b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/temp/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh b/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh index cdf2d92..f5226b5 100644 --- a/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh +++ b/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh @@ -20,10 +20,16 @@ DIRNAME=`dirname $0` HOME=`cd $DIRNAME/nginx; pwd` +LUAJIT_HOME=`cd $DIRNAME/luajit; pwd` _NGINXCMD="$HOME/sbin/nginx" +echo =========== prepare the symbolic links ======================================== +ln -s -f $_NGINXCMD $DIRNAME/bin/openresty +ln -s -f $LUAJIT_HOME/bin/luajit2.1.0-beta2 $LUAJIT_HOME/bin/luajit +ln -s -f $LUAJIT_HOME/lib/libluajit-5.1.so.2.1.0 $LUAJIT_HOME/lib/libluajit-5.1.so.2 +ln -s -f $LUAJIT_HOME/lib/libluajit-5.1.so.2.1.0 $LUAJIT_HOME/lib/libluajit-5.1.so +echo ================================================================================ echo =========== create symbolic link for libluajit-5.1.so.2 ======================================== -LUAJIT_HOME=`cd $DIRNAME/luajit; pwd` LUAJIT_FILENAME="$LUAJIT_HOME/lib/libluajit-5.1.so.2" LN_TARGET_FILE='/lib/libluajit-5.1.so.2' LN_TARGET_FILE64='/lib64/libluajit-5.1.so.2' -- cgit 1.2.3-korg