You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/05 19:21:09 UTC

[GitHub] mhamann closed pull request #272: OpenRESTy version bump + Power

mhamann closed pull request #272: OpenRESTy version bump + Power
URL: https://github.com/apache/incubator-openwhisk-apigateway/pull/272
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/Dockerfile b/Dockerfile
index 24c80f5..918bf3f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,7 @@ RUN apk --update add \
     && rm -rf /var/cache/apk/*
 
 # openresty build
-ENV OPENRESTY_VERSION=1.9.7.3 \
+ENV OPENRESTY_VERSION=1.13.6.1 \
     NAXSI_VERSION=0.53-2 \
     PCRE_VERSION=8.37 \
     TEST_NGINX_VERSION=0.24 \
@@ -46,6 +46,17 @@ RUN  if [ x`uname -m` = xs390x ]; then \
 	 && rm -rf /tmp/luajit \
      ; fi
 
+RUN  if [ x`uname -m` = xppc64le ]; then \
+         echo "Building LuaJIT for ppc64le" \
+         && mkdir /tmp/luajit  \
+         && cd /tmp/luajit \
+         && curl -k -L https://api.github.com/repos/PPC64/LuaJIT/tarball > luajit.tar.gz \
+         && tar -zxf luajit.tar.gz \
+         && cd PPC64-LuaJIT-* \
+         && make && make install \
+         && rm -rf /tmp/luajit \
+     ; fi
+
 RUN  echo " ... adding Openresty, NGINX, NAXSI and PCRE" \
      && mkdir -p /tmp/api-gateway \
      && readonly NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \
@@ -63,6 +74,9 @@ RUN  echo " ... adding Openresty, NGINX, NAXSI and PCRE" \
      && if [ x`uname -m` = xs390x ]; then \
           luajitdir="=/usr/local/" \
 	  pcrejit="" \
+        ; elif [ x`uname -m` = xppc64le ]; then \
+          luajitdir="=/usr/local/" \
+          pcrejit="--with-pcre-jit" \
         ; else \
 	  luajitdir="" \
 	  pcrejit="--with-pcre-jit" \
@@ -165,7 +179,7 @@ RUN echo " ... installing opm..." \
     && cd ${_prefix}/api-gateway \
     && mkdir -p site/manifest site/pod \
     && cd site \
-    && ln -s ../lualib ./ \
+    && ( [ -x ../lualib ] || ln -s ../lualib ./ ) \
     && ln -s ${_prefix}/api-gateway/bin/opm /usr/bin/opm \
     && ln -s ${_prefix}/api-gateway/bin/resty /usr/bin/resty \
     && rm -rf /tmp/api-gateway


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services