From bc68f9eea3cccc0c1215687a887a211b970e9e00 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Wed, 15 Mar 2017 15:23:54 -0300 Subject: [PATCH] Update nginx and vts module --- controllers/nginx/rootfs/Dockerfile | 2 +- images/nginx-slim/Dockerfile | 2 +- images/nginx-slim/Makefile | 2 +- images/nginx-slim/build.sh | 13 +++++++++---- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/controllers/nginx/rootfs/Dockerfile b/controllers/nginx/rootfs/Dockerfile index dc114b925..33e8650d2 100644 --- a/controllers/nginx/rootfs/Dockerfile +++ b/controllers/nginx/rootfs/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM gcr.io/google_containers/nginx-slim:0.14 +FROM gcr.io/google_containers/nginx-slim:0.15 RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ diffutils \ diff --git a/images/nginx-slim/Dockerfile b/images/nginx-slim/Dockerfile index 5efd6b40b..06003cfd1 100644 --- a/images/nginx-slim/Dockerfile +++ b/images/nginx-slim/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. -FROM gcr.io/google_containers/ubuntu-slim:0.7 +FROM gcr.io/google_containers/ubuntu-slim:0.8 COPY build.sh /tmp diff --git a/images/nginx-slim/Makefile b/images/nginx-slim/Makefile index 4b52337e1..cb12e5307 100644 --- a/images/nginx-slim/Makefile +++ b/images/nginx-slim/Makefile @@ -1,7 +1,7 @@ all: push # 0.0.0 shouldn't clobber any released builds -TAG = 0.14 +TAG = 0.15 PREFIX = gcr.io/google_containers/nginx-slim container: diff --git a/images/nginx-slim/build.sh b/images/nginx-slim/build.sh index 2236e1369..5a022839d 100755 --- a/images/nginx-slim/build.sh +++ b/images/nginx-slim/build.sh @@ -17,9 +17,9 @@ set -e -export NGINX_VERSION=1.11.10 +export NGINX_VERSION=1.11.12 export NDK_VERSION=0.3.0 -export VTS_VERSION=0.1.11 +export VTS_VERSION=0.1.13 export SETMISC_VERSION=0.31 export LUA_VERSION=0.10.7 export STICKY_SESSIONS_VERSION=08a395c66e42 @@ -69,7 +69,7 @@ apt-get update && apt-get install --no-install-recommends -y \ linux-headers-generic || exit 1 # download, verify and extract the source files -get_src 778b3cabb07633f754cd9dee32fc8e22582bce22bfa407be76a806abd935533d \ +get_src 2aff7f9396d1f77256efc363e1cc05ba52d40a29e6de4d9bc08aa444eea14122 \ "http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz" get_src 88e05a99a8a7419066f5ae75966fb1efc409bad4522d14986da074554ae61619 \ @@ -78,7 +78,7 @@ get_src 88e05a99a8a7419066f5ae75966fb1efc409bad4522d14986da074554ae61619 \ get_src 97946a68937b50ab8637e1a90a13198fe376d801dc3e7447052e43c28e9ee7de \ "https://github.com/openresty/set-misc-nginx-module/archive/v$SETMISC_VERSION.tar.gz" -get_src 31db853251a631a6b6a0b96b10806c9c32eda3c3d08fe46a38ff944b22dba636 \ +get_src 17042d50318a07db3366d59c24a05aab303f2e32096d56b379c2ef46e70e02ba \ "https://github.com/vozlt/nginx-module-vts/archive/v$VTS_VERSION.tar.gz" get_src c21c8937dcdd6fc2b6a955f929e3f4d1388610f47180e60126e6dcab06786f77 \ @@ -109,6 +109,11 @@ get_src 8eabbcd5950fdcc718bb0ef9165206c2ed60f67cd9da553d7bc3e6fe4e338461 \ #https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/ curl -sSL -o nginx__dynamic_tls_records.patch https://raw.githubusercontent.com/cloudflare/sslconfig/master/patches/nginx__1.11.5_dynamic_tls_records.patch +# https://github.com/openresty/lua-nginx-module/issues/1016 +curl -sSL -o patch-src-ngx_http_lua_headers.c.diff https://raw.githubusercontent.com/macports/macports-ports/master/www/nginx/files/patch-src-ngx_http_lua_headers.c.diff +cd "$BUILD_PATH/lua-nginx-module-$LUA_VERSION" +patch -p1 < $BUILD_PATH/patch-src-ngx_http_lua_headers.c.diff + # build nginx cd "$BUILD_PATH/nginx-$NGINX_VERSION"