Skip to content

Commit

Permalink
Merge pull request #493 from aledbf/update-nginx
Browse files Browse the repository at this point in the history
Update nginx and vts module
  • Loading branch information
aledbf authored Apr 3, 2017
2 parents 403cf5e + bc68f9e commit 79f8019
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion controllers/nginx/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion images/nginx-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion images/nginx-slim/Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 9 additions & 4 deletions images/nginx-slim/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 79f8019

Please sign in to comment.